home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacOS Executable
(executable/macOSExecutable).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| MacOS Executable (executable/macOSExecutable)
| magic
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, bundle, Wed Jul 13 23:21:09 1994, modified Wed Jul 13 23:39:40 1994, creator 'HTMe', type application, 143360 bytes "HTML.edit v1.1.2" , at 0x23080 861745 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh Application (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [APPL] |
macFileCreator | [HTMe] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 48 54 4d 4c 2e 65 | 64 69 74 20 76 31 2e 31 |..HTML.e|dit v1.1|
|00000010| 2e 32 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.2......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 41 50 50 4c 48 54 4d | 65 21 00 00 00 00 00 00 |.APPLHTM|e!......|
|00000050| 00 00 00 00 02 30 00 00 | 0d 26 31 aa 4a 5f a5 aa |.....0..|.&1.J_..|
|00000060| 4a 63 fc 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |Jc......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 12 ad 00 00 |........|........|
|00000080| 00 00 62 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..b.STAK|........|
|00000090| 00 00 00 0a 00 02 30 00 | 00 00 62 00 00 00 00 00 |......0.|..b.....|
|000000a0| 00 00 00 00 00 00 00 02 | 00 00 15 a3 00 00 00 05 |........|........|
|000000b0| 00 00 08 f4 00 00 09 4d | 00 00 00 00 00 00 00 00 |.......M|........|
|000000c0| 00 00 16 78 00 00 00 00 | 00 05 00 00 10 00 00 00 |...x....|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 20 80 00 01 12 80 25 | 01 12 80 25 01 12 80 25 |. .....%|...%...%|
|000000f0| de 58 08 d2 00 00 00 00 | 00 2e 00 10 01 84 02 10 |.X......|........|
|00000100| 00 00 00 00 03 66 04 80 | 00 00 00 00 00 00 00 00 |.....f..|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d 12 00 00 0c 10 | 02 80 02 80 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 2d 2d 20 48 54 4d 4c 2e | 65 64 69 74 20 76 31 2e |-- HTML.|edit v1.|
|00000690| 31 2e 31 20 a9 31 39 39 | 34 20 62 79 20 4d 75 72 |1.1 .199|4 by Mur|
|000006a0| 72 61 79 20 4d 2e 20 41 | 6c 74 68 65 69 6d 0d 0d |ray M. A|ltheim..|
|000006b0| 6f 6e 20 61 70 70 6c 65 | 45 76 65 6e 74 20 74 68 |on apple|Event th|
|000006c0| 65 43 6c 61 73 73 2c 74 | 68 65 49 44 2c 74 68 65 |eClass,t|heID,the|
|000006d0| 53 65 6e 64 65 72 0d 67 | 6c 6f 62 61 6c 20 65 72 |Sender.g|lobal er|
|000006e0| 72 47 6c 6f 62 61 6c 0d | 62 69 6e 6b 20 66 34 73 |rGlobal.|bink f4s|
|000006f0| 0d 62 69 6e 6b 20 61 0d | 73 65 74 20 6c 6f 63 6b |.bink a.|set lock|
|00000700| 45 72 72 6f 72 44 69 61 | 6c 6f 67 73 20 74 6f 20 |ErrorDia|logs to |
|00000710| 54 52 55 45 0d 67 65 74 | 20 74 68 65 20 69 74 65 |TRUE.get| the ite|
|00000720| 6d 44 65 6c 69 6d 69 74 | 65 72 0d 73 65 74 20 74 |mDelimit|er.set t|
|00000730| 68 65 20 69 74 65 6d 44 | 65 6c 69 6d 69 74 65 72 |he itemD|elimiter|
|00000740| 20 74 6f 20 63 6f 6c 6f | 6e 0d 70 75 74 20 6c 61 | to colo|n.put la|
|00000750| 73 74 20 69 74 65 6d 20 | 6f 66 20 74 68 65 53 65 |st item |of theSe|
|00000760| 6e 64 65 72 20 69 6e 74 | 6f 20 73 65 6e 64 69 6e |nder int|o sendin|
|00000770| 67 50 72 6f 67 72 61 6d | 0d 73 65 74 20 74 68 65 |gProgram|.set the|
|00000780| 20 69 74 65 6d 44 65 6c | 69 6d 69 74 65 72 20 74 | itemDel|imiter t|
|00000790| 6f 20 69 74 0d 69 66 20 | 74 68 65 43 6c 61 73 73 |o it.if |theClass|
|000007a0| 20 69 73 20 22 61 65 76 | 74 22 20 61 6e 64 20 74 | is "aev|t" and t|
|000007b0| 68 65 49 44 20 69 73 20 | 22 6f 64 6f 63 22 20 61 |heID is |"odoc" a|
|000007c0| 6e 64 20 73 65 6e 64 69 | 6e 67 50 72 6f 67 72 61 |nd sendi|ngProgra|
|000007d0| 6d 20 69 73 20 22 46 69 | 6e 64 65 72 22 20 74 68 |m is "Fi|nder" th|
|000007e0| 65 6e 0d 73 65 74 20 63 | 75 72 73 6f 72 20 74 6f |en.set c|ursor to|
|000007f0| 20 77 61 74 63 68 0d 72 | 65 71 75 65 73 74 20 61 | watch.r|equest a|
|00000800| 70 70 6c 65 45 76 65 6e | 74 20 64 61 74 61 0d 69 |ppleEven|t data.i|
|00000810| 66 20 69 74 20 3d 20 22 | 22 20 74 68 65 6e 20 65 |f it = "|" then e|
|00000820| 78 69 74 20 61 70 70 6c | 65 45 76 65 6e 74 0d 70 |xit appl|eEvent.p|
|00000830| 75 74 20 69 74 20 69 6e | 74 6f 20 66 4e 61 6d 65 |ut it in|to fName|
|00000840| 4c 69 73 74 0d 67 6f 20 | 6c 61 73 74 20 63 64 20 |List.go |last cd |
|00000850| 6f 66 20 62 67 20 22 45 | 64 69 74 6f 72 22 0d 72 |of bg "E|ditor".r|
|00000860| 65 70 65 61 74 20 77 69 | 74 68 20 69 20 3d 20 31 |epeat wi|th i = 1|
|00000870| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | to the |number o|
|00000880| 66 20 6c 69 6e 65 73 20 | 6f 66 20 66 4e 61 6d 65 |f lines |of fName|
|00000890| 4c 69 73 74 0d 70 75 74 | 20 46 69 6c 65 54 79 70 |List.put| FileTyp|
|000008a0| 65 28 6c 69 6e 65 20 69 | 20 6f 66 20 66 4e 61 6d |e(line i| of fNam|
|000008b0| 65 4c 69 73 74 2c 20 22 | 6e 6f 64 69 61 6c 6f 67 |eList, "|nodialog|
|000008c0| 3a 65 72 72 47 6c 6f 62 | 61 6c 22 29 20 69 6e 74 |:errGlob|al") int|
|000008d0| 6f 20 66 54 79 70 65 0d | 69 66 20 65 72 72 47 6c |o fType.|if errGl|
|000008e0| 6f 62 61 6c 20 ad 20 22 | 22 20 74 68 65 6e 0d 61 |obal . "|" then.a|
|000008f0| 6e 73 77 65 72 20 22 41 | 70 70 6c 65 45 76 65 6e |nswer "A|ppleEven|
|00000900| 74 20 45 72 72 6f 72 3a | 20 d2 22 20 26 20 65 72 |t Error:| ." & er|
|00000910| 72 47 6c 6f 62 61 6c 20 | 26 20 22 d3 22 0d 70 75 |rGlobal |& ".".pu|
|00000920| 74 20 22 22 20 69 6e 74 | 6f 20 65 72 72 47 6c 6f |t "" int|o errGlo|
|00000930| 62 61 6c 0d 65 78 69 74 | 20 61 70 70 6c 65 45 76 |bal.exit| appleEv|
|00000940| 65 6e 74 0d 65 6c 73 65 | 20 69 66 20 66 54 79 70 |ent.else| if fTyp|
|00000950| 65 20 3d 20 22 54 45 58 | 54 22 20 74 68 65 6e 0d |e = "TEX|T" then.|
|00000960| 73 65 6e 64 20 22 69 6d | 70 6f 72 74 48 54 4d 4c |send "im|portHTML|
|00000970| 22 26 26 71 75 6f 74 65 | 26 28 6c 69 6e 65 20 69 |"&"e|&(line i|
|00000980| 20 6f 66 20 66 4e 61 6d | 65 4c 69 73 74 29 26 71 | of fNam|eList)&q|
|00000990| 75 6f 74 65 20 74 6f 20 | 62 67 20 62 74 6e 20 69 |uote to |bg btn i|
|000009a0| 64 20 32 31 20 6f 66 20 | 63 64 20 31 20 6f 66 20 |d 21 of |cd 1 of |
|000009b0| 62 67 20 22 45 64 69 74 | 6f 72 22 0d 65 6e 64 20 |bg "Edit|or".end |
|000009c0| 69 66 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 65 6e |if.end r|epeat.en|
|000009d0| 64 20 69 66 0d 65 6e 64 | 20 61 70 70 6c 65 45 76 |d if.end| appleEv|
|000009e0| 65 6e 74 0d 0d 6f 6e 20 | 69 6d 70 6f 72 74 48 54 |ent..on |importHT|
|000009f0| 4d 4c 0d 67 65 74 20 28 | 77 6f 72 64 20 32 20 6f |ML.get (|word 2 o|
|00000a00| 66 20 74 68 65 20 73 65 | 6c 65 63 74 65 64 4c 69 |f the se|lectedLi|
|00000a10| 6e 65 20 6f 66 20 63 64 | 20 66 6c 64 20 22 69 6e |ne of cd| fld "in|
|00000a20| 64 65 78 22 20 6f 66 20 | 63 64 20 22 69 6e 64 65 |dex" of |cd "inde|
|00000a30| 78 22 29 0d 69 66 20 69 | 74 20 b3 20 6e 75 6d 62 |x").if i|t . numb|
|00000a40| 65 72 28 63 64 73 20 69 | 6e 20 62 67 20 22 65 64 |er(cds i|n bg "ed|
|00000a50| 69 74 6f 72 22 29 20 74 | 68 65 6e 20 67 6f 20 6c |itor") t|hen go l|
|00000a60| 61 73 74 20 63 64 20 6f | 66 20 62 67 20 22 45 64 |ast cd o|f bg "Ed|
|00000a70| 69 74 6f 72 22 0d 65 6c | 73 65 20 67 6f 20 63 64 |itor".el|se go cd|
|00000a80| 20 28 69 74 2b 31 29 0d | 73 65 6e 64 20 22 69 6d | (it+1).|send "im|
|00000a90| 70 6f 72 74 48 54 4d 4c | 22 20 74 6f 20 62 67 20 |portHTML|" to bg |
|00000aa0| 62 74 6e 20 69 64 20 32 | 31 20 6f 66 20 63 64 20 |btn id 2|1 of cd |
|00000ab0| 31 20 6f 66 20 62 67 20 | 22 45 64 69 74 6f 72 22 |1 of bg |"Editor"|
|00000ac0| 0d 65 6e 64 20 69 6d 70 | 6f 72 74 48 54 4d 4c 0d |.end imp|ortHTML.|
|00000ad0| 0d 6f 6e 20 73 74 61 72 | 74 75 70 0d 68 69 64 65 |.on star|tup.hide|
|00000ae0| 20 73 63 72 6f 6c 6c 20 | 77 69 6e 64 6f 77 0d 73 | scroll |window.s|
|00000af0| 68 6f 77 41 62 6f 75 74 | 20 33 0d 73 65 74 20 63 |howAbout| 3.set c|
|00000b00| 75 72 73 6f 72 20 74 6f | 20 66 69 6e 67 65 72 73 |ursor to| fingers|
|00000b10| 30 0d 70 61 73 73 20 73 | 74 61 72 74 75 70 0d 65 |0.pass s|tartup.e|
|00000b20| 6e 64 20 73 74 61 72 74 | 75 70 0d 0d 6f 6e 20 6f |nd start|up..on o|
|00000b30| 70 65 6e 53 74 61 63 6b | 0d 68 69 64 65 20 73 63 |penStack|.hide sc|
|00000b40| 72 6f 6c 6c 20 77 69 6e | 64 6f 77 0d 73 65 6e 64 |roll win|dow.send|
|00000b50| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 74 6f 20 63 | initial|ize to c|
|00000b60| 64 20 69 64 20 32 32 39 | 32 0d 73 65 6e 64 20 73 |d id 229|2.send s|
|00000b70| 65 74 4d 65 6e 75 73 20 | 74 6f 20 63 64 20 69 64 |etMenus |to cd id|
|00000b80| 20 32 32 39 32 0d 73 65 | 6e 64 20 73 65 74 45 6e | 2292.se|nd setEn|
|00000b90| 74 69 74 69 65 73 20 74 | 6f 20 63 64 20 69 64 20 |tities t|o cd id |
|00000ba0| 32 32 39 32 0d 73 65 74 | 20 63 75 72 73 6f 72 20 |2292.set| cursor |
|00000bb0| 74 6f 20 66 69 6e 67 65 | 72 73 33 0d 70 61 73 73 |to finge|rs3.pass|
|00000bc0| 20 6f 70 65 6e 53 74 61 | 63 6b 0d 65 6e 64 20 6f | openSta|ck.end o|
|00000bd0| 70 65 6e 53 74 61 63 6b | 0d 0d 6f 6e 20 63 6c 6f |penStack|..on clo|
|00000be0| 73 65 53 74 61 63 6b 0d | 69 66 20 74 68 65 20 68 |seStack.|if the h|
|00000bf0| 69 6c 69 74 65 20 6f 66 | 20 63 64 20 62 74 6e 20 |ilite of| cd btn |
|00000c00| 69 64 20 39 20 6f 66 20 | 63 64 20 22 70 72 65 66 |id 9 of |cd "pref|
|00000c10| 73 22 20 74 68 65 6e 20 | 63 6f 6d 70 61 63 74 53 |s" then |compactS|
|00000c20| 74 61 63 6b 0d 69 66 20 | 74 68 65 72 65 20 69 73 |tack.if |there is|
|00000c30| 20 61 20 77 69 6e 64 6f | 77 20 22 48 54 4d 4c 2e | a windo|w "HTML.|
|00000c40| 65 64 69 74 20 48 65 6c | 70 22 20 74 68 65 6e 20 |edit Hel|p" then |
|00000c50| 63 6c 6f 73 65 20 77 69 | 6e 64 6f 77 20 22 48 54 |close wi|ndow "HT|
|00000c60| 4d 4c 2e 65 64 69 74 20 | 48 65 6c 70 22 0d 69 66 |ML.edit |Help".if|
|00000c70| 20 74 68 65 72 65 20 69 | 73 20 61 20 77 69 6e 64 | there i|s a wind|
|00000c80| 6f 77 20 22 48 54 4d 4c | 54 6f 6f 6c 73 22 20 74 |ow "HTML|Tools" t|
|00000c90| 68 65 6e 20 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |hen clos|e window|
|00000ca0| 20 22 48 54 4d 4c 54 6f | 6f 6c 73 22 0d 69 66 20 | "HTMLTo|ols".if |
|00000cb0| 74 68 65 72 65 20 69 73 | 20 61 20 77 69 6e 64 6f |there is| a windo|
|00000cc0| 77 20 22 48 54 4d 4c 54 | 6f 6f 6c 73 43 6f 6c 6f |w "HTMLT|oolsColo|
|00000cd0| 72 22 20 74 68 65 6e 20 | 63 6c 6f 73 65 20 77 69 |r" then |close wi|
|00000ce0| 6e 64 6f 77 20 22 48 54 | 4d 4c 54 6f 6f 6c 73 43 |ndow "HT|MLToolsC|
|00000cf0| 6f 6c 6f 72 22 0d 69 66 | 20 74 68 65 72 65 20 69 |olor".if| there i|
|00000d00| 73 20 61 20 77 69 6e 64 | 6f 77 20 22 45 6e 74 69 |s a wind|ow "Enti|
|00000d10| 74 69 65 73 22 20 74 68 | 65 6e 20 63 6c 6f 73 65 |ties" th|en close|
|00000d20| 20 77 69 6e 64 6f 77 20 | 22 45 6e 74 69 74 69 65 | window |"Entitie|
|00000d30| 73 22 0d 72 65 73 65 74 | 20 6d 65 6e 75 62 61 72 |s".reset| menubar|
|00000d40| 0d 70 61 73 73 20 63 6c | 6f 73 65 53 74 61 63 6b |.pass cl|oseStack|
|00000d50| 0d 65 6e 64 20 63 6c 6f | 73 65 53 74 61 63 6b 0d |.end clo|seStack.|
|00000d60| 0d 2d 2d 20 a5 20 68 61 | 6e 64 6c 65 20 70 61 6c |.-- . ha|ndle pal|
|00000d70| 65 74 74 65 73 0d 0d 6f | 6e 20 73 75 73 70 65 6e |ettes..o|n suspen|
|00000d80| 64 53 74 61 63 6b 0d 68 | 69 64 65 50 61 6c 65 74 |dStack.h|idePalet|
|00000d90| 74 65 73 0d 72 65 73 65 | 74 20 6d 65 6e 75 62 61 |tes.rese|t menuba|
|00000da0| 72 0d 70 61 73 73 20 73 | 75 73 70 65 6e 64 53 74 |r.pass s|uspendSt|
|00000db0| 61 63 6b 0d 65 6e 64 20 | 73 75 73 70 65 6e 64 53 |ack.end |suspendS|
|00000dc0| 74 61 63 6b 0d 0d 6f 6e | 20 72 65 73 75 6d 65 53 |tack..on| resumeS|
|00000dd0| 74 61 63 6b 0d 73 65 65 | 6b 50 61 6c 65 74 74 65 |tack.see|kPalette|
|00000de0| 73 0d 73 65 6e 64 20 73 | 65 74 4d 65 6e 75 73 20 |s.send s|etMenus |
|00000df0| 74 6f 20 63 64 20 69 64 | 20 32 32 39 32 0d 70 61 |to cd id| 2292.pa|
|00000e00| 73 73 20 72 65 73 75 6d | 65 53 74 61 63 6b 0d 65 |ss resum|eStack.e|
|00000e10| 6e 64 20 72 65 73 75 6d | 65 53 74 61 63 6b 0d 0d |nd resum|eStack..|
|00000e20| 6f 6e 20 63 6c 6f 73 65 | 50 61 6c 65 74 74 65 0d |on close|Palette.|
|00000e30| 67 6c 6f 62 61 6c 20 48 | 65 54 5f 76 69 7a 2c 48 |global H|eT_viz,H|
|00000e40| 65 43 5f 76 69 7a 0d 69 | 66 20 74 68 65 72 65 20 |eC_viz.i|f there |
|00000e50| 69 73 20 61 20 77 69 6e | 64 6f 77 20 22 48 54 4d |is a win|dow "HTM|
|00000e60| 4c 54 6f 6f 6c 73 43 6f | 6c 6f 72 22 0d 74 68 65 |LToolsCo|lor".the|
|00000e70| 6e 20 70 75 74 20 74 68 | 65 20 6c 6f 63 20 6f 66 |n put th|e loc of|
|00000e80| 20 77 69 6e 64 6f 77 20 | 22 48 54 4d 4c 54 6f 6f | window |"HTMLToo|
|00000e90| 6c 73 43 6f 6c 6f 72 22 | 20 69 6e 74 6f 20 63 64 |lsColor"| into cd|
|00000ea0| 20 66 6c 64 20 22 74 6f | 6f 6c 73 4c 6f 63 22 20 | fld "to|olsLoc" |
|00000eb0| 6f 66 20 63 64 20 22 70 | 72 65 66 73 22 0d 65 6c |of cd "p|refs".el|
|00000ec0| 73 65 20 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |se if th|ere is a|
|00000ed0| 20 77 69 6e 64 6f 77 20 | 22 48 54 4d 4c 54 6f 6f | window |"HTMLToo|
|00000ee0| 6c 73 22 0d 74 68 65 6e | 20 70 75 74 20 74 68 65 |ls".then| put the|
|00000ef0| 20 6c 6f 63 20 6f 66 20 | 77 69 6e 64 6f 77 20 22 | loc of |window "|
|00000f00| 48 54 4d 4c 54 6f 6f 6c | 73 22 20 69 6e 74 6f 20 |HTMLTool|s" into |
|00000f10| 63 64 20 66 6c 64 20 22 | 74 6f 6f 6c 73 4c 6f 63 |cd fld "|toolsLoc|
|00000f20| 22 20 6f 66 20 63 64 20 | 22 70 72 65 66 73 22 0d |" of cd |"prefs".|
|00000f30| 70 75 74 20 46 41 4c 53 | 45 20 69 6e 74 6f 20 48 |put FALS|E into H|
|00000f40| 65 54 5f 76 69 7a 0d 70 | 75 74 20 46 41 4c 53 45 |eT_viz.p|ut FALSE|
|00000f50| 20 69 6e 74 6f 20 48 65 | 43 5f 76 69 7a 0d 65 6e | into He|C_viz.en|
|00000f60| 64 20 63 6c 6f 73 65 50 | 61 6c 65 74 74 65 0d 0d |d closeP|alette..|
|00000f70| 6f 6e 20 73 68 6f 77 54 | 6f 6f 6c 73 0d 69 66 20 |on showT|ools.if |
|00000f80| 74 68 65 20 73 68 6f 72 | 74 20 6e 61 6d 65 20 6f |the shor|t name o|
|00000f90| 66 20 74 68 69 73 20 62 | 67 20 ad 20 22 45 64 69 |f this b|g . "Edi|
|00000fa0| 74 6f 72 22 20 74 68 65 | 6e 20 65 78 69 74 20 73 |tor" the|n exit s|
|00000fb0| 68 6f 77 54 6f 6f 6c 73 | 0d 67 65 74 20 63 64 20 |howTools|.get cd |
|00000fc0| 66 6c 64 20 22 74 6f 6f | 6c 73 4c 6f 63 22 20 6f |fld "too|lsLoc" o|
|00000fd0| 66 20 63 64 20 22 70 72 | 65 66 73 22 0d 69 66 20 |f cd "pr|efs".if |
|00000fe0| 69 74 20 3d 20 22 22 20 | 6f 72 20 6f 70 74 69 6f |it = "" |or optio|
|00000ff0| 6e 4b 65 79 28 29 20 3d | 20 64 6f 77 6e 20 74 68 |nKey() =| down th|
|00001000| 65 6e 20 67 65 74 20 69 | 74 65 6d 20 31 20 6f 66 |en get i|tem 1 of|
|00001010| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 62 67 20 62 | the loc| of bg b|
|00001020| 74 6e 20 22 5a 6f 6f 6d | 42 6f 78 22 20 2d 20 31 |tn "Zoom|Box" - 1|
|00001030| 39 31 26 22 2c 36 38 22 | 0d 65 6c 73 65 20 67 65 |91&",68"|.else ge|
|00001040| 74 20 69 74 0d 69 66 20 | 74 68 65 72 65 20 69 73 |t it.if |there is|
|00001050| 20 61 20 77 69 6e 64 6f | 77 20 22 48 54 4d 4c 54 | a windo|w "HTMLT|
|00001060| 6f 6f 6c 73 22 20 74 68 | 65 6e 20 73 68 6f 77 20 |ools" th|en show |
|00001070| 77 69 6e 64 6f 77 20 22 | 48 54 4d 4c 54 6f 6f 6c |window "|HTMLTool|
|00001080| 73 22 0d 65 6c 73 65 20 | 69 66 20 74 68 65 72 65 |s".else |if there|
|00001090| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 22 48 54 | is a wi|ndow "HT|
|000010a0| 4d 4c 54 6f 6f 6c 73 43 | 6f 6c 6f 72 22 20 74 68 |MLToolsC|olor" th|
|000010b0| 65 6e 20 73 68 6f 77 20 | 77 69 6e 64 6f 77 20 22 |en show |window "|
|000010c0| 48 54 4d 4c 54 6f 6f 6c | 73 43 6f 6c 6f 72 22 0d |HTMLTool|sColor".|
|000010d0| 65 6c 73 65 20 69 66 20 | 28 69 74 65 6d 20 32 20 |else if |(item 2 |
|000010e0| 6f 66 20 6c 69 6e 65 20 | 31 20 6f 66 20 67 65 74 |of line |1 of get|
|000010f0| 4d 6f 64 65 28 29 20 3d | 20 38 29 20 74 68 65 6e |Mode() =| 8) then|
|00001100| 20 70 61 6c 65 74 74 65 | 20 22 48 54 4d 4c 54 6f | palette| "HTMLTo|
|00001110| 6f 6c 73 43 6f 6c 6f 72 | 22 2c 69 74 0d 65 6c 73 |olsColor|",it.els|
|00001120| 65 20 70 61 6c 65 74 74 | 65 20 22 48 54 4d 4c 54 |e palett|e "HTMLT|
|00001130| 6f 6f 6c 73 22 2c 69 74 | 0d 65 6e 64 20 73 68 6f |ools",it|.end sho|
|00001140| 77 54 6f 6f 6c 73 0d 0d | 6f 6e 20 68 69 64 65 50 |wTools..|on hideP|
|00001150| 61 6c 65 74 74 65 73 0d | 67 6c 6f 62 61 6c 20 48 |alettes.|global H|
|00001160| 65 54 5f 76 69 7a 2c 48 | 65 43 5f 76 69 7a 0d 70 |eT_viz,H|eC_viz.p|
|00001170| 75 74 20 76 69 7a 28 22 | 48 54 4d 4c 54 6f 6f 6c |ut viz("|HTMLTool|
|00001180| 73 22 29 20 69 6e 74 6f | 20 48 65 54 5f 76 69 7a |s") into| HeT_viz|
|00001190| 0d 69 66 20 48 65 54 5f | 76 69 7a 20 74 68 65 6e |.if HeT_|viz then|
|000011a0| 20 68 69 64 65 20 77 69 | 6e 64 6f 77 20 22 48 54 | hide wi|ndow "HT|
|000011b0| 4d 4c 54 6f 6f 6c 73 22 | 0d 70 75 74 20 76 69 7a |MLTools"|.put viz|
|000011c0| 28 22 48 54 4d 4c 54 6f | 6f 6c 73 43 6f 6c 6f 72 |("HTMLTo|olsColor|
|000011d0| 22 29 20 69 6e 74 6f 20 | 48 65 43 5f 76 69 7a 0d |") into |HeC_viz.|
|000011e0| 69 66 20 48 65 43 5f 76 | 69 7a 20 74 68 65 6e 20 |if HeC_v|iz then |
|000011f0| 68 69 64 65 20 77 69 6e | 64 6f 77 20 22 48 54 4d |hide win|dow "HTM|
|00001200| 4c 54 6f 6f 6c 73 43 6f | 6c 6f 72 22 0d 65 6e 64 |LToolsCo|lor".end|
|00001210| 20 68 69 64 65 50 61 6c | 65 74 74 65 73 0d 0d 6f | hidePal|ettes..o|
|00001220| 6e 20 73 65 65 6b 50 61 | 6c 65 74 74 65 73 0d 67 |n seekPa|lettes.g|
|00001230| 6c 6f 62 61 6c 20 48 65 | 54 5f 76 69 7a 2c 48 65 |lobal He|T_viz,He|
|00001240| 43 5f 76 69 7a 0d 69 66 | 20 48 65 43 5f 76 69 7a |C_viz.if| HeC_viz|
|00001250| 20 3d 20 54 52 55 45 20 | 74 68 65 6e 20 73 68 6f | = TRUE |then sho|
|00001260| 77 54 6f 6f 6c 73 20 63 | 6f 6c 6f 72 0d 65 6c 73 |wTools c|olor.els|
|00001270| 65 20 69 66 20 48 65 54 | 5f 76 69 7a 20 3d 20 54 |e if HeT|_viz = T|
|00001280| 52 55 45 20 74 68 65 6e | 20 73 68 6f 77 54 6f 6f |RUE then| showToo|
|00001290| 6c 73 0d 65 6e 64 20 73 | 65 65 6b 50 61 6c 65 74 |ls.end s|eekPalet|
|000012a0| 74 65 73 0d 0d 6f 6e 20 | 63 6c 6f 73 65 50 61 6c |tes..on |closePal|
|000012b0| 65 74 74 65 73 0d 69 66 | 20 74 68 65 72 65 20 69 |ettes.if| there i|
|000012c0| 73 20 61 20 77 69 6e 64 | 6f 77 20 22 48 54 4d 4c |s a wind|ow "HTML|
|000012d0| 2e 65 64 69 74 20 48 65 | 6c 70 22 20 74 68 65 6e |.edit He|lp" then|
|000012e0| 20 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 22 48 | close w|indow "H|
|000012f0| 54 4d 4c 2e 65 64 69 74 | 20 48 65 6c 70 22 0d 69 |TML.edit| Help".i|
|00001300| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|00001310| 64 6f 77 20 22 48 54 4d | 4c 54 6f 6f 6c 73 22 20 |dow "HTM|LTools" |
|00001320| 74 68 65 6e 20 63 6c 6f | 73 65 20 77 69 6e 64 6f |then clo|se windo|
|00001330| 77 20 22 48 54 4d 4c 54 | 6f 6f 6c 73 22 0d 69 66 |w "HTMLT|ools".if|
|00001340| 20 74 68 65 72 65 20 69 | 73 20 61 20 77 69 6e 64 | there i|s a wind|
|00001350| 6f 77 20 22 48 54 4d 4c | 54 6f 6f 6c 73 43 6f 6c |ow "HTML|ToolsCol|
|00001360| 6f 72 22 20 74 68 65 6e | 20 63 6c 6f 73 65 20 77 |or" then| close w|
|00001370| 69 6e 64 6f 77 20 22 48 | 54 4d 4c 54 6f 6f 6c 73 |indow "H|TMLTools|
|00001380| 43 6f 6c 6f 72 22 0d 65 | 6e 64 20 63 6c 6f 73 65 |Color".e|nd close|
|00001390| 50 61 6c 65 74 74 65 73 | 0d 0d 2d 2d 20 a5 20 73 |Palettes|..-- . s|
|000013a0| 74 61 6e 64 61 72 64 0d | 0d 6f 6e 20 63 6f 6d 6d |tandard.|.on comm|
|000013b0| 61 6e 64 4b 65 79 44 6f | 77 6e 20 6b 0d 49 46 20 |andKeyDo|wn k.IF |
|000013c0| 6b 20 3d 20 22 2f 22 20 | 6f 72 20 6b 20 3d 20 22 |k = "/" |or k = "|
|000013d0| 3f 22 20 74 68 65 6e 20 | 48 54 4d 4c 48 65 6c 70 |?" then |HTMLHelp|
|000013e0| 0d 65 6c 73 65 20 69 66 | 20 6b 20 3d 20 30 20 74 |.else if| k = 0 t|
|000013f0| 68 65 6e 20 73 65 6c 65 | 63 74 46 72 6f 6d 49 6e |hen sele|ctFromIn|
|00001400| 64 65 78 0d 65 6c 73 65 | 20 69 66 20 6b 20 3d 20 |dex.else| if k = |
|00001410| 31 20 74 68 65 6e 20 67 | 6f 20 63 64 20 22 49 6e |1 then g|o cd "In|
|00001420| 64 65 78 22 0d 65 6c 73 | 65 20 69 66 20 6b 20 3d |dex".els|e if k =|
|00001430| 20 32 20 74 68 65 6e 20 | 67 6f 20 70 72 65 76 0d | 2 then |go prev.|
|00001440| 65 6c 73 65 20 69 66 20 | 6b 20 3d 20 33 20 74 68 |else if |k = 3 th|
|00001450| 65 6e 20 67 6f 20 6e 65 | 78 74 0d 65 6c 73 65 20 |en go ne|xt.else |
|00001460| 69 66 20 6b 20 3d 20 34 | 20 74 68 65 6e 20 67 6f |if k = 4| then go|
|00001470| 20 63 64 20 22 6d 48 22 | 0d 65 6c 73 65 20 69 66 | cd "mH"|.else if|
|00001480| 20 6b 20 3d 20 35 20 74 | 68 65 6e 20 67 6f 20 63 | k = 5 t|hen go c|
|00001490| 64 20 22 6d 46 22 0d 65 | 6c 73 65 20 69 66 20 6b |d "mF".e|lse if k|
|000014a0| 20 3d 20 36 20 74 68 65 | 6e 20 67 6f 20 63 64 20 | = 6 the|n go cd |
|000014b0| 22 70 72 65 66 73 22 0d | 45 4c 53 45 20 69 66 20 |"prefs".|ELSE if |
|000014c0| 28 73 68 69 66 74 4b 65 | 79 28 29 20 ad 20 64 6f |(shiftKe|y() . do|
|000014d0| 77 6e 29 20 74 68 65 6e | 0d 69 66 20 6b 20 3d 20 |wn) then|.if k = |
|000014e0| 22 48 22 20 6f 72 20 6b | 20 3d 20 22 52 22 20 74 |"H" or k| = "R" t|
|000014f0| 68 65 6e 20 65 78 69 74 | 20 63 6f 6d 6d 61 6e 64 |hen exit| command|
|00001500| 4b 65 79 44 6f 77 6e 0d | 65 6c 73 65 20 69 66 20 |KeyDown.|else if |
|00001510| 6b 20 3d 20 22 41 22 20 | 61 6e 64 20 22 66 69 65 |k = "A" |and "fie|
|00001520| 6c 64 22 20 69 73 20 69 | 6e 20 74 68 65 20 73 65 |ld" is i|n the se|
|00001530| 6c 65 63 74 65 64 43 68 | 75 6e 6b 20 74 68 65 6e |lectedCh|unk then|
|00001540| 20 73 65 6c 65 63 74 20 | 74 65 78 74 20 6f 66 20 | select |text of |
|00001550| 74 68 65 20 73 65 6c 65 | 63 74 65 64 46 69 65 6c |the sele|ctedFiel|
|00001560| 64 0d 65 6c 73 65 20 69 | 66 20 6b 20 3d 20 22 45 |d.else i|f k = "E|
|00001570| 22 20 74 68 65 6e 20 73 | 65 74 20 74 68 65 20 76 |" then s|et the v|
|00001580| 69 73 69 62 6c 65 20 6f | 66 20 73 63 72 6f 6c 6c |isible o|f scroll|
|00001590| 20 77 69 6e 64 6f 77 20 | 74 6f 20 6e 6f 74 20 74 | window |to not t|
|000015a0| 68 65 20 76 69 73 69 62 | 6c 65 20 6f 66 20 73 63 |he visib|le of sc|
|000015b0| 72 6f 6c 6c 20 77 69 6e | 64 6f 77 0d 65 6c 73 65 |roll win|dow.else|
|000015c0| 20 69 66 20 6b 20 3d 20 | 22 4d 22 20 74 68 65 6e | if k = |"M" then|
|000015d0| 20 73 65 74 20 74 68 65 | 20 76 69 73 69 62 6c 65 | set the| visible|
|000015e0| 20 6f 66 20 6d 73 67 20 | 74 6f 20 6e 6f 74 20 74 | of msg |to not t|
|000015f0| 68 65 20 76 69 73 69 62 | 6c 65 20 6f 66 20 6d 73 |he visib|le of ms|
|00001600| 67 0d 65 6c 73 65 20 69 | 66 20 6b 20 3d 20 22 4f |g.else i|f k = "O|
|00001610| 22 20 74 68 65 6e 20 73 | 65 6e 64 20 22 69 6d 70 |" then s|end "imp|
|00001620| 6f 72 74 48 54 4d 4c 22 | 20 74 6f 20 74 68 69 73 |ortHTML"| to this|
|00001630| 20 63 64 0d 65 6c 73 65 | 20 70 61 73 73 20 63 6f | cd.else| pass co|
|00001640| 6d 6d 61 6e 64 4b 65 79 | 44 6f 77 6e 0d 45 4c 53 |mmandKey|Down.ELS|
|00001650| 45 20 70 61 73 73 20 63 | 6f 6d 6d 61 6e 64 4b 65 |E pass c|ommandKe|
|00001660| 79 44 6f 77 6e 0d 65 6e | 64 20 63 6f 6d 6d 61 6e |yDown.en|d comman|
|00001670| 64 4b 65 79 44 6f 77 6e | 0d 0d 6f 6e 20 72 65 74 |dKeyDown|..on ret|
|00001680| 75 72 6e 49 6e 46 69 65 | 6c 64 0d 67 6c 6f 62 61 |urnInFie|ld.globa|
|00001690| 6c 20 75 73 65 48 54 4d | 4c 52 65 74 75 72 6e 0d |l useHTM|LReturn.|
|000016a0| 69 66 20 75 73 65 48 54 | 4d 4c 52 65 74 75 72 6e |if useHT|MLReturn|
|000016b0| 20 3d 20 54 52 55 45 20 | 61 6e 64 20 6f 70 74 69 | = TRUE |and opti|
|000016c0| 6f 6e 4b 65 79 28 29 20 | 3d 20 64 6f 77 6e 20 61 |onKey() |= down a|
|000016d0| 6e 64 20 73 68 69 66 74 | 4b 65 79 28 29 20 3d 20 |nd shift|Key() = |
|000016e0| 64 6f 77 6e 20 74 68 65 | 6e 0d 73 65 74 55 6e 64 |down the|n.setUnd|
|000016f0| 6f 0d 69 66 20 6c 65 6e | 67 74 68 28 73 65 6c 65 |o.if len|gth(sele|
|00001700| 63 74 65 64 54 65 78 74 | 29 20 3e 20 30 20 74 68 |ctedText|) > 0 th|
|00001710| 65 6e 20 70 75 74 20 22 | 3c 42 52 3e 22 26 72 65 |en put "|<BR>"&re|
|00001720| 74 75 72 6e 20 61 66 74 | 65 72 20 74 68 65 20 73 |turn aft|er the s|
|00001730| 65 6c 65 63 74 69 6f 6e | 0d 65 6c 73 65 20 74 79 |election|.else ty|
|00001740| 70 65 20 22 3c 42 52 3e | 22 26 72 65 74 75 72 6e |pe "<BR>|"&return|
|00001750| 0d 65 6c 73 65 20 69 66 | 20 75 73 65 48 54 4d 4c |.else if| useHTML|
|00001760| 52 65 74 75 72 6e 20 3d | 20 54 52 55 45 20 61 6e |Return =| TRUE an|
|00001770| 64 20 6f 70 74 69 6f 6e | 4b 65 79 28 29 20 3d 20 |d option|Key() = |
|00001780| 64 6f 77 6e 20 74 68 65 | 6e 0d 73 65 74 55 6e 64 |down the|n.setUnd|
|00001790| 6f 0d 69 66 20 6c 65 6e | 67 74 68 28 73 65 6c 65 |o.if len|gth(sele|
|000017a0| 63 74 65 64 54 65 78 74 | 29 20 3e 20 30 20 74 68 |ctedText|) > 0 th|
|000017b0| 65 6e 20 70 75 74 20 22 | 3c 50 3e 22 26 72 65 74 |en put "|<P>"&ret|
|000017c0| 75 72 6e 20 61 66 74 65 | 72 20 74 68 65 20 73 65 |urn afte|r the se|
|000017d0| 6c 65 63 74 69 6f 6e 0d | 65 6c 73 65 20 74 79 70 |lection.|else typ|
|000017e0| 65 20 22 3c 50 3e 22 26 | 72 65 74 75 72 6e 0d 65 |e "<P>"&|return.e|
|000017f0| 6c 73 65 20 70 61 73 73 | 20 72 65 74 75 72 6e 49 |lse pass| returnI|
|00001800| 6e 46 69 65 6c 64 0d 65 | 6e 64 20 72 65 74 75 72 |nField.e|nd retur|
|00001810| 6e 49 6e 46 69 65 6c 64 | 0d 0d 6f 6e 20 64 6f 4d |nInField|..on doM|
|00001820| 65 6e 75 20 69 0d 69 66 | 20 69 20 3d 20 22 4e 65 |enu i.if| i = "Ne|
|00001830| 77 20 42 61 63 6b 67 72 | 6f 75 6e 64 22 20 74 68 |w Backgr|ound" th|
|00001840| 65 6e 20 62 65 65 70 0d | 65 6c 73 65 20 69 66 20 |en beep.|else if |
|00001850| 69 20 3d 20 22 49 6d 70 | 6f 72 74 20 44 6f 63 75 |i = "Imp|ort Docu|
|00001860| 6d 65 6e 74 c9 22 20 74 | 68 65 6e 0d 67 6f 20 6c |ment." t|hen.go l|
|00001870| 61 73 74 20 63 64 20 6f | 66 20 62 67 20 22 45 64 |ast cd o|f bg "Ed|
|00001880| 69 74 6f 72 22 0d 73 65 | 6e 64 20 22 69 6d 70 6f |itor".se|nd "impo|
|00001890| 72 74 48 54 4d 4c 22 20 | 74 6f 20 74 68 69 73 20 |rtHTML" |to this |
|000018a0| 63 64 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |cd.else |if i = "|
|000018b0| 45 78 70 6f 72 74 20 44 | 6f 63 75 6d 65 6e 74 c9 |Export D|ocument.|
|000018c0| 22 20 74 68 65 6e 0d 67 | 65 74 20 6e 75 6d 62 65 |" then.g|et numbe|
|000018d0| 72 28 74 68 69 73 20 63 | 64 29 0d 69 66 20 28 74 |r(this c|d).if (t|
|000018e0| 68 65 20 73 68 6f 72 74 | 20 69 64 20 6f 66 20 74 |he short| id of t|
|000018f0| 68 69 73 20 62 67 20 3d | 20 35 35 33 39 29 20 74 |his bg =| 5539) t|
|00001900| 68 65 6e 20 73 65 6e 64 | 20 22 65 78 70 6f 72 74 |hen send| "export|
|00001910| 48 54 4d 4c 22 20 74 6f | 20 74 68 69 73 20 63 64 |HTML" to| this cd|
|00001920| 0d 65 6c 73 65 20 62 65 | 65 70 0d 65 6c 73 65 20 |.else be|ep.else |
|00001930| 69 66 20 69 20 3d 20 22 | 43 6f 6d 70 61 63 74 20 |if i = "|Compact |
|00001940| 53 74 61 63 6b 22 20 74 | 68 65 6e 0d 63 6c 6f 73 |Stack" t|hen.clos|
|00001950| 65 50 61 6c 65 74 74 65 | 73 0d 70 61 73 73 20 64 |ePalette|s.pass d|
|00001960| 6f 4d 65 6e 75 0d 65 6c | 73 65 20 70 61 73 73 20 |oMenu.el|se pass |
|00001970| 64 6f 4d 65 6e 75 0d 65 | 6e 64 20 64 6f 4d 65 6e |doMenu.e|nd doMen|
|00001980| 75 0d 0d 6f 6e 20 69 64 | 6c 65 0d 69 66 20 74 68 |u..on id|le.if th|
|00001990| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|000019a0| 22 70 72 6f 67 72 65 73 | 73 22 20 74 68 65 6e 20 |"progres|s" then |
|000019b0| 63 6c 6f 73 65 20 77 69 | 6e 64 6f 77 20 22 70 72 |close wi|ndow "pr|
|000019c0| 6f 67 72 65 73 73 22 0d | 70 61 73 73 20 69 64 6c |ogress".|pass idl|
|000019d0| 65 0d 65 6e 64 20 69 64 | 6c 65 0d 0d 6f 6e 20 73 |e.end id|le..on s|
|000019e0| 68 6f 77 41 62 6f 75 74 | 20 74 68 65 54 69 6d 65 |howAbout| theTime|
|000019f0| 0d 68 69 64 65 50 61 6c | 65 74 74 65 73 0d 69 66 |.hidePal|ettes.if|
|00001a00| 20 74 68 65 54 69 6d 65 | 20 3d 20 22 22 20 74 68 | theTime| = "" th|
|00001a10| 65 6e 20 70 75 74 20 39 | 39 39 20 69 6e 74 6f 20 |en put 9|99 into |
|00001a20| 74 68 65 54 69 6d 65 0d | 69 66 20 28 69 74 65 6d |theTime.|if (item|
|00001a30| 20 32 20 6f 66 20 6c 69 | 6e 65 20 31 20 6f 66 20 | 2 of li|ne 1 of |
|00001a40| 67 65 74 4d 6f 64 65 28 | 29 20 3c 20 38 29 20 74 |getMode(|) < 8) t|
|00001a50| 68 65 6e 20 73 68 6f 77 | 57 69 6e 64 20 22 41 62 |hen show|Wind "Ab|
|00001a60| 6f 75 74 42 6f 78 42 57 | 22 2c 74 68 65 54 69 6d |outBoxBW|",theTim|
|00001a70| 65 0d 65 6c 73 65 20 73 | 68 6f 77 57 69 6e 64 20 |e.else s|howWind |
|00001a80| 22 41 62 6f 75 74 42 6f | 78 22 2c 74 68 65 54 69 |"AboutBo|x",theTi|
|00001a90| 6d 65 0d 73 65 65 6b 50 | 61 6c 65 74 74 65 73 0d |me.seekP|alettes.|
|00001aa0| 65 6e 64 20 73 68 6f 77 | 41 62 6f 75 74 0d 0d 6f |end show|About..o|
|00001ab0| 6e 20 73 68 6f 77 57 69 | 6e 64 20 77 69 6e 64 2c |n showWi|nd wind,|
|00001ac0| 74 69 6d 65 0d 67 65 74 | 20 74 68 65 20 74 69 63 |time.get| the tic|
|00001ad0| 6b 73 0d 70 69 63 74 75 | 72 65 20 77 69 6e 64 2c |ks.pictu|re wind,|
|00001ae0| 72 65 73 6f 75 72 63 65 | 2c 73 68 61 64 6f 77 0d |resource|,shadow.|
|00001af0| 69 66 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 77 |if there| is no w|
|00001b00| 69 6e 64 6f 77 20 77 69 | 6e 64 20 74 68 65 6e 20 |indow wi|nd then |
|00001b10| 61 6e 73 77 65 72 20 22 | 4f 55 54 20 4f 46 20 4d |answer "|OUT OF M|
|00001b20| 45 4d 4f 52 59 20 45 52 | 52 4f 52 3a 22 26 72 65 |EMORY ER|ROR:"&re|
|00001b30| 74 75 72 6e 26 22 55 6e | 61 62 6c 65 20 74 6f 20 |turn&"Un|able to |
|00001b40| 64 69 73 70 6c 61 79 20 | 67 72 61 70 68 69 63 2e |display |graphic.|
|00001b50| 20 41 6c 6c 6f 63 61 74 | 65 20 6d 6f 72 65 20 6d | Allocat|e more m|
|00001b60| 65 6d 6f 72 79 20 74 6f | 20 74 68 69 73 20 61 70 |emory to| this ap|
|00001b70| 70 6c 69 63 61 74 69 6f | 6e 2e 22 0d 65 6c 73 65 |plicatio|n.".else|
|00001b80| 20 77 61 69 74 20 75 6e | 74 69 6c 20 74 68 65 20 | wait un|til the |
|00001b90| 6d 6f 75 73 65 43 6c 69 | 63 6b 20 6f 72 20 74 68 |mouseCli|ck or th|
|00001ba0| 65 20 74 69 63 6b 73 20 | 2d 20 69 74 20 3e 20 28 |e ticks |- it > (|
|00001bb0| 74 69 6d 65 20 2a 20 36 | 30 29 0d 76 69 73 75 61 |time * 6|0).visua|
|00001bc0| 6c 20 7a 6f 6f 6d 20 63 | 6c 6f 73 65 0d 69 66 20 |l zoom c|lose.if |
|00001bd0| 74 68 65 72 65 20 69 73 | 20 61 20 77 69 6e 64 6f |there is| a windo|
|00001be0| 77 20 77 69 6e 64 20 74 | 68 65 6e 20 63 6c 6f 73 |w wind t|hen clos|
|00001bf0| 65 20 77 69 6e 64 6f 77 | 20 77 69 6e 64 0d 65 6e |e window| wind.en|
|00001c00| 64 20 73 68 6f 77 57 69 | 6e 64 0d 0d 6f 6e 20 6d |d showWi|nd..on m|
|00001c10| 6f 75 73 65 44 6f 77 6e | 49 6e 50 69 63 74 75 72 |ouseDown|InPictur|
|00001c20| 65 20 77 69 6e 64 0d 63 | 6c 6f 73 65 20 77 69 6e |e wind.c|lose win|
|00001c30| 64 6f 77 20 77 69 6e 64 | 0d 65 6e 64 20 6d 6f 75 |dow wind|.end mou|
|00001c40| 73 65 44 6f 77 6e 49 6e | 50 69 63 74 75 72 65 0d |seDownIn|Picture.|
|00001c50| 0d 6f 6e 20 73 74 6f 70 | 55 73 69 6e 67 0d 72 65 |.on stop|Using.re|
|00001c60| 70 65 61 74 20 77 69 74 | 68 20 69 20 3d 20 31 20 |peat wit|h i = 1 |
|00001c70| 74 6f 20 6e 75 6d 62 65 | 72 28 6c 69 6e 65 73 20 |to numbe|r(lines |
|00001c80| 69 6e 20 74 68 65 20 73 | 74 61 63 6b 73 49 6e 55 |in the s|tacksInU|
|00001c90| 73 65 29 0d 73 74 6f 70 | 20 75 73 69 6e 67 20 73 |se).stop| using s|
|00001ca0| 74 61 63 6b 20 28 6c 69 | 6e 65 20 69 20 6f 66 20 |tack (li|ne i of |
|00001cb0| 74 68 65 20 73 74 61 63 | 6b 73 49 6e 55 73 65 29 |the stac|ksInUse)|
|00001cc0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |.end rep|eat.end |
|00001cd0| 73 74 6f 70 55 73 69 6e | 67 0d 0d 6f 6e 20 63 6f |stopUsin|g..on co|
|00001ce0| 6d 70 61 63 74 53 74 61 | 63 6b 20 6e 6f 77 0d 73 |mpactSta|ck now.s|
|00001cf0| 74 6f 70 55 73 69 6e 67 | 0d 67 65 74 20 74 68 65 |topUsing|.get the|
|00001d00| 20 73 68 6f 72 74 20 6e | 61 6d 65 20 6f 66 20 63 | short n|ame of c|
|00001d10| 64 20 62 74 6e 20 69 64 | 20 31 30 20 6f 66 20 63 |d btn id| 10 of c|
|00001d20| 64 20 22 70 72 65 66 73 | 22 0d 69 66 20 69 74 20 |d "prefs|".if it |
|00001d30| 3d 20 22 41 6c 77 61 79 | 73 22 20 74 68 65 6e 20 |= "Alway|s" then |
|00001d40| 67 65 74 20 22 3e 30 25 | 22 0d 65 6c 73 65 0d 64 |get ">0%|".else.d|
|00001d50| 65 6c 65 74 65 20 66 69 | 72 73 74 20 63 68 61 72 |elete fi|rst char|
|00001d60| 20 6f 66 20 69 74 0d 64 | 65 6c 65 74 65 20 6c 61 | of it.d|elete la|
|00001d70| 73 74 20 63 68 61 72 20 | 6f 66 20 69 74 0d 70 75 |st char |of it.pu|
|00001d80| 74 20 69 74 2f 31 30 30 | 20 69 6e 74 6f 20 74 68 |t it/100| into th|
|00001d90| 72 65 73 68 6f 6c 64 0d | 65 6e 64 20 69 66 0d 69 |reshold.|end if.i|
|00001da0| 66 20 28 74 68 65 20 66 | 72 65 65 53 69 7a 65 20 |f (the f|reeSize |
|00001db0| 6f 66 20 74 68 69 73 20 | 73 74 61 63 6b 2f 74 68 |of this |stack/th|
|00001dc0| 65 20 73 69 7a 65 20 6f | 66 20 74 68 69 73 20 73 |e size o|f this s|
|00001dd0| 74 61 63 6b 20 3e 20 74 | 68 72 65 73 68 6f 6c 64 |tack > t|hreshold|
|00001de0| 29 20 6f 72 20 6e 6f 77 | 20 3d 20 54 52 55 45 0d |) or now| = TRUE.|
|00001df0| 74 68 65 6e 20 64 6f 4d | 65 6e 75 20 22 43 6f 6d |then doM|enu "Com|
|00001e00| 70 61 63 74 20 53 74 61 | 63 6b 22 0d 65 6e 64 20 |pact Sta|ck".end |
|00001e10| 63 6f 6d 70 61 63 74 53 | 74 61 63 6b 0d 0d 6f 6e |compactS|tack..on|
|00001e20| 20 70 72 69 6e 74 54 65 | 78 74 0d 69 66 20 74 68 | printTe|xt.if th|
|00001e30| 65 20 73 68 6f 72 74 20 | 6e 61 6d 65 20 6f 66 20 |e short |name of |
|00001e40| 74 68 69 73 20 62 67 20 | 3d 20 22 45 64 69 74 6f |this bg |= "Edito|
|00001e50| 72 22 20 74 68 65 6e 0d | 6f 70 65 6e 20 72 65 70 |r" then.|open rep|
|00001e60| 6f 72 74 20 70 72 69 6e | 74 69 6e 67 20 77 69 74 |ort prin|ting wit|
|00001e70| 68 20 74 65 6d 70 6c 61 | 74 65 20 22 50 72 69 6e |h templa|te "Prin|
|00001e80| 74 44 6f 63 75 6d 65 6e | 74 22 0d 70 72 69 6e 74 |tDocumen|t".print|
|00001e90| 20 74 68 69 73 20 63 64 | 0d 63 6c 6f 73 65 20 70 | this cd|.close p|
|00001ea0| 72 69 6e 74 69 6e 67 0d | 65 6e 64 20 69 66 0d 65 |rinting.|end if.e|
|00001eb0| 6e 64 20 70 72 69 6e 74 | 54 65 78 74 0d 0d 2d 2d |nd print|Text..--|
|00001ec0| 20 a5 20 48 54 4d 4c 20 | 48 65 6c 70 0d 0d 6f 6e | . HTML |Help..on|
|00001ed0| 20 48 54 4d 4c 48 65 6c | 70 20 69 0d 67 6c 6f 62 | HTMLHel|p i.glob|
|00001ee0| 61 6c 20 74 6f 70 69 63 | 0d 69 66 20 69 20 3d 20 |al topic|.if i = |
|00001ef0| 22 48 54 4d 4c 22 20 74 | 68 65 6e 20 67 65 74 20 |"HTML" t|hen get |
|00001f00| 22 41 20 42 65 67 69 6e | 6e 65 72 27 73 20 47 75 |"A Begin|ner's Gu|
|00001f10| 69 64 65 20 74 6f 20 48 | 54 4d 4c 22 0d 65 6c 73 |ide to H|TML".els|
|00001f20| 65 20 69 66 20 74 68 65 | 20 70 61 72 61 6d 43 6f |e if the| paramCo|
|00001f30| 75 6e 74 20 3d 20 30 20 | 6f 72 20 69 20 3d 20 22 |unt = 0 |or i = "|
|00001f40| 22 20 74 68 65 6e 20 67 | 65 74 20 22 43 6f 6e 74 |" then g|et "Cont|
|00001f50| 65 6e 74 73 22 0d 65 6c | 73 65 20 67 65 74 20 69 |ents".el|se get i|
|00001f60| 0d 70 75 74 20 69 74 20 | 69 6e 74 6f 20 74 6f 70 |.put it |into top|
|00001f70| 69 63 0d 69 66 20 69 20 | 3d 20 22 41 62 6f 75 74 |ic.if i |= "About|
|00001f80| 20 42 6f 78 22 20 74 68 | 65 6e 0d 69 66 20 76 69 | Box" th|en.if vi|
|00001f90| 7a 28 22 48 54 4d 4c 2e | 65 64 69 74 20 48 65 6c |z("HTML.|edit Hel|
|00001fa0| 70 22 29 20 74 68 65 6e | 20 68 69 64 65 20 77 69 |p") then| hide wi|
|00001fb0| 6e 64 6f 77 20 22 48 54 | 4d 4c 2e 65 64 69 74 20 |ndow "HT|ML.edit |
|00001fc0| 48 65 6c 70 22 0d 68 69 | 64 65 50 61 6c 65 74 74 |Help".hi|dePalett|
|00001fd0| 65 73 0d 73 68 6f 77 41 | 62 6f 75 74 0d 73 65 65 |es.showA|bout.see|
|00001fe0| 6b 50 61 6c 65 74 74 65 | 73 0d 69 66 20 74 68 65 |kPalette|s.if the|
|00001ff0| 72 65 20 69 73 20 61 20 | 77 69 6e 64 6f 77 20 22 |re is a |window "|
|00002000| 48 54 4d 4c 2e 65 64 69 | 74 20 48 65 6c 70 22 20 |HTML.edi|t Help" |
|00002010| 74 68 65 6e 0d 73 68 6f | 77 20 77 69 6e 64 6f 77 |then.sho|w window|
|00002020| 20 22 48 54 4d 4c 2e 65 | 64 69 74 20 48 65 6c 70 | "HTML.e|dit Help|
|00002030| 22 0d 65 6e 64 20 69 66 | 0d 65 6c 73 65 20 69 66 |".end if|.else if|
|00002040| 20 69 20 3d 20 22 50 61 | 6c 65 74 74 65 20 48 65 | i = "Pa|lette He|
|00002050| 6c 70 22 20 74 68 65 6e | 20 70 61 6c 65 74 74 65 |lp" then| palette|
|00002060| 48 65 6c 70 0d 65 6c 73 | 65 20 69 66 20 69 20 ad |Help.els|e if i .|
|00002070| 20 22 66 61 6c 73 65 22 | 20 74 68 65 6e 0d 69 66 | "false"| then.if|
|00002080| 20 68 65 6c 70 41 76 61 | 69 6c 61 62 6c 65 28 29 | helpAva|ilable()|
|00002090| 20 61 6e 64 20 74 68 65 | 72 65 20 69 73 20 6e 6f | and the|re is no|
|000020a0| 74 20 61 20 77 69 6e 64 | 6f 77 20 22 48 54 4d 4c |t a wind|ow "HTML|
|000020b0| 2e 65 64 69 74 20 48 65 | 6c 70 22 20 74 68 65 6e |.edit He|lp" then|
|000020c0| 0d 67 65 74 20 74 72 75 | 6e 63 28 74 68 65 20 77 |.get tru|nc(the w|
|000020d0| 69 64 74 68 20 6f 66 20 | 63 64 20 77 69 6e 64 6f |idth of |cd windo|
|000020e0| 77 2f 36 29 26 22 2c 34 | 34 2c 22 26 74 72 75 6e |w/6)&",4|4,"&trun|
|000020f0| 63 28 35 2f 36 2a 74 68 | 65 20 77 69 64 74 68 20 |c(5/6*th|e width |
|00002100| 6f 66 20 63 64 20 77 69 | 6e 64 6f 77 29 26 22 2c |of cd wi|ndow)&",|
|00002110| 22 26 28 74 68 65 20 68 | 65 69 67 68 74 20 6f 66 |"&(the h|eight of|
|00002120| 20 63 64 20 77 69 6e 64 | 6f 77 29 2d 32 36 0d 54 | cd wind|ow)-26.T|
|00002130| 65 78 74 6f 69 64 20 22 | 48 54 4d 4c 2e 65 64 69 |extoid "|HTML.edi|
|00002140| 74 20 48 65 6c 70 22 2c | 74 6f 70 69 63 2c 62 69 |t Help",|topic,bi|
|00002150| 67 57 69 6e 64 6f 69 64 | 5a 6f 6f 6d 2c 69 74 0d |gWindoid|Zoom,it.|
|00002160| 62 69 6e 6b 0d 65 6e 64 | 20 69 66 0d 69 66 20 74 |bink.end| if.if t|
|00002170| 68 65 72 65 20 69 73 20 | 61 20 77 69 6e 64 6f 77 |here is |a window|
|00002180| 20 22 48 54 4d 4c 2e 65 | 64 69 74 20 48 65 6c 70 | "HTML.e|dit Help|
|00002190| 22 20 74 68 65 6e 0d 73 | 65 74 20 74 68 65 20 55 |" then.s|et the U|
|000021a0| 6e 4c 6f 63 6b 41 6c 6c | 6f 77 65 64 20 6f 66 20 |nLockAll|owed of |
|000021b0| 77 69 6e 64 6f 77 20 22 | 48 54 4d 4c 2e 65 64 69 |window "|HTML.edi|
|000021c0| 74 20 48 65 6c 70 22 20 | 74 6f 20 46 41 4c 53 45 |t Help" |to FALSE|
|000021d0| 0d 73 65 74 20 74 65 78 | 74 20 6f 66 20 77 69 6e |.set tex|t of win|
|000021e0| 64 6f 77 20 22 48 54 4d | 4c 2e 65 64 69 74 20 48 |dow "HTM|L.edit H|
|000021f0| 65 6c 70 22 20 74 6f 20 | 74 6f 70 69 63 20 2d 2d |elp" to |topic --|
|00002200| 20 6c 6f 61 64 20 66 72 | 6f 6d 20 52 53 52 43 0d | load fr|om RSRC.|
|00002210| 73 65 74 20 66 69 65 6c | 64 54 72 61 6e 73 66 65 |set fiel|dTransfe|
|00002220| 72 20 6f 66 20 77 69 6e | 64 6f 77 20 22 48 54 4d |r of win|dow "HTM|
|00002230| 4c 2e 65 64 69 74 20 48 | 65 6c 70 22 20 74 6f 20 |L.edit H|elp" to |
|00002240| 22 66 6c 64 20 69 64 20 | 31 35 22 20 2d 2d 20 74 |"fld id |15" -- t|
|00002250| 78 66 65 72 20 74 6f 20 | 66 6c 64 0d 65 6c 73 65 |xfer to |fld.else|
|00002260| 0d 61 6e 73 77 65 72 20 | 22 45 52 52 4f 52 3a 22 |.answer |"ERROR:"|
|00002270| 26 72 65 74 75 72 6e 26 | 22 55 6e 61 62 6c 65 20 |&return&|"Unable |
|00002280| 74 6f 20 64 69 73 70 6c | 61 79 20 48 65 6c 70 20 |to displ|ay Help |
|00002290| 77 69 6e 64 6f 77 2e 20 | 50 6c 65 61 73 65 20 70 |window. |Please p|
|000022a0| 6c 61 63 65 20 74 68 65 | 20 66 69 6c 65 20 27 48 |lace the| file 'H|
|000022b0| 54 4d 4c 2e 65 64 69 74 | 2e 48 65 6c 70 27 20 69 |TML.edit|.Help' i|
|000022c0| 6e 20 74 68 65 20 73 61 | 6d 65 20 66 6f 6c 64 65 |n the sa|me folde|
|000022d0| 72 20 61 73 20 48 54 4d | 4c 2e 65 64 69 74 20 61 |r as HTM|L.edit a|
|000022e0| 6e 64 20 74 72 79 20 61 | 67 61 69 6e 2e 22 20 77 |nd try a|gain." w|
|000022f0| 69 74 68 20 22 43 61 6e | 63 65 6c 22 0d 65 78 69 |ith "Can|cel".exi|
|00002300| 74 20 74 6f 20 48 79 70 | 65 72 43 61 72 64 0d 65 |t to Hyp|erCard.e|
|00002310| 6e 64 20 69 66 0d 75 6e | 6c 6f 63 6b 20 73 63 72 |nd if.un|lock scr|
|00002320| 65 65 6e 20 77 69 74 68 | 20 64 69 73 73 6f 6c 76 |een with| dissolv|
|00002330| 65 20 76 65 72 79 20 66 | 61 73 74 0d 65 6e 64 20 |e very f|ast.end |
|00002340| 69 66 0d 65 6e 64 20 48 | 54 4d 4c 48 65 6c 70 0d |if.end H|TMLHelp.|
|00002350| 0d 6f 6e 20 63 6c 69 63 | 6b 49 6e 54 65 78 74 20 |.on clic|kInText |
|00002360| 74 68 65 57 6f 72 64 2c | 57 4e 61 6d 65 2c 77 2c |theWord,|WName,w,|
|00002370| 73 31 2c 73 32 2c 66 2c | 73 32 2c 74 68 65 53 74 |s1,s2,f,|s2,theSt|
|00002380| 79 6c 65 20 2d 2d 20 63 | 6c 69 63 6b 20 69 6e 20 |yle -- c|lick in |
|00002390| 48 65 6c 70 20 77 69 6e | 64 6f 77 0d 69 66 20 74 |Help win|dow.if t|
|000023a0| 68 65 53 74 79 6c 65 20 | 63 6f 6e 74 61 69 6e 73 |heStyle |contains|
|000023b0| 20 22 67 72 6f 75 70 22 | 20 61 6e 64 20 74 68 65 | "group"| and the|
|000023c0| 53 74 79 6c 65 20 63 6f | 6e 74 61 69 6e 73 20 22 |Style co|ntains "|
|000023d0| 75 6e 64 65 72 6c 69 6e | 65 22 20 74 68 65 6e 20 |underlin|e" then |
|000023e0| 48 54 4d 4c 48 65 6c 70 | 20 74 68 65 57 6f 72 64 |HTMLHelp| theWord|
|000023f0| 0d 65 6e 64 20 63 6c 69 | 63 6b 49 6e 54 65 78 74 |.end cli|ckInText|
|00002400| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 68 65 6c 70 41 |..functi|on helpA|
|00002410| 76 61 69 6c 61 62 6c 65 | 0d 69 66 20 6f 70 74 69 |vailable|.if opti|
|00002420| 6f 6e 4b 65 79 28 29 20 | 3d 20 64 6f 77 6e 20 6f |onKey() |= down o|
|00002430| 72 20 22 48 54 4d 4c 2e | 65 64 69 74 20 48 65 6c |r "HTML.|edit Hel|
|00002440| 70 22 20 69 73 20 69 6e | 20 74 68 65 20 77 69 6e |p" is in| the win|
|00002450| 64 6f 77 73 20 74 68 65 | 6e 20 72 65 74 75 72 6e |dows the|n return|
|00002460| 20 54 52 55 45 20 2d 2d | 20 a5 20 64 65 6c 65 74 | TRUE --| . delet|
|00002470| 65 0d 69 66 20 73 74 61 | 63 6b 4e 61 6d 65 28 63 |e.if sta|ckName(c|
|00002480| 64 20 66 6c 64 20 22 68 | 65 6c 70 53 74 61 63 6b |d fld "h|elpStack|
|00002490| 22 20 6f 66 20 63 64 20 | 22 70 72 65 66 73 22 29 |" of cd |"prefs")|
|000024a0| 20 69 73 20 69 6e 20 74 | 68 65 20 73 74 61 63 6b | is in t|he stack|
|000024b0| 73 49 6e 55 73 65 20 74 | 68 65 6e 20 72 65 74 75 |sInUse t|hen retu|
|000024c0| 72 6e 20 54 52 55 45 0d | 65 6c 73 65 0d 72 65 70 |rn TRUE.|else.rep|
|000024d0| 65 61 74 20 31 20 74 69 | 6d 65 73 0d 67 65 74 20 |eat 1 ti|mes.get |
|000024e0| 66 69 6c 65 45 78 69 73 | 74 73 28 63 64 20 66 6c |fileExis|ts(cd fl|
|000024f0| 64 20 22 68 65 6c 70 53 | 74 61 63 6b 22 20 6f 66 |d "helpS|tack" of|
|00002500| 20 63 64 20 22 70 72 65 | 66 73 22 2c 22 6e 6f 64 | cd "pre|fs","nod|
|00002510| 69 61 6c 6f 67 3a 65 72 | 72 47 6c 6f 62 61 6c 22 |ialog:er|rGlobal"|
|00002520| 29 0d 69 66 20 65 72 72 | 47 6c 6f 62 61 6c 20 3d |).if err|Global =|
|00002530| 20 22 22 0d 74 68 65 6e | 20 73 74 61 72 74 20 75 | "".then| start u|
|00002540| 73 69 6e 67 20 73 74 61 | 63 6b 20 63 64 20 66 6c |sing sta|ck cd fl|
|00002550| 64 20 22 68 65 6c 70 53 | 74 61 63 6b 22 20 6f 66 |d "helpS|tack" of|
|00002560| 20 63 64 20 22 70 72 65 | 66 73 22 0d 65 6c 73 65 | cd "pre|fs".else|
|00002570| 20 73 74 61 72 74 20 75 | 73 69 6e 67 20 73 74 61 | start u|sing sta|
|00002580| 63 6b 20 22 48 54 4d 4c | 2e 65 64 69 74 2e 48 65 |ck "HTML|.edit.He|
|00002590| 6c 70 22 0d 69 66 20 22 | 48 54 4d 4c 2e 65 64 69 |lp".if "|HTML.edi|
|000025a0| 74 2e 48 65 6c 70 22 20 | 69 73 20 6e 6f 74 20 69 |t.Help" |is not i|
|000025b0| 6e 20 74 68 65 20 73 74 | 61 63 6b 73 49 6e 55 73 |n the st|acksInUs|
|000025c0| 65 0d 74 68 65 6e 20 70 | 75 74 20 22 48 54 4d 4c |e.then p|ut "HTML|
|000025d0| 2e 65 64 69 74 2e 48 65 | 6c 70 22 20 69 6e 74 6f |.edit.He|lp" into|
|000025e0| 20 63 64 20 66 6c 64 20 | 22 68 65 6c 70 53 74 61 | cd fld |"helpSta|
|000025f0| 63 6b 22 20 6f 66 20 63 | 64 20 22 70 72 65 66 73 |ck" of c|d "prefs|
|00002600| 22 0d 65 6c 73 65 0d 70 | 75 74 20 74 68 65 50 61 |".else.p|ut thePa|
|00002610| 74 68 28 74 68 65 20 6c | 6f 6e 67 20 6e 61 6d 65 |th(the l|ong name|
|00002620| 20 6f 66 20 73 74 61 63 | 6b 20 22 48 54 4d 4c 2e | of stac|k "HTML.|
|00002630| 65 64 69 74 2e 48 65 6c | 70 22 29 26 22 48 54 4d |edit.Hel|p")&"HTM|
|00002640| 4c 2e 65 64 69 74 2e 48 | 65 6c 70 22 20 69 6e 74 |L.edit.H|elp" int|
|00002650| 6f 20 c2 0d 63 64 20 66 | 6c 64 20 22 68 65 6c 70 |o ..cd f|ld "help|
|00002660| 53 74 61 63 6b 22 20 6f | 66 20 63 64 20 22 70 72 |Stack" o|f cd "pr|
|00002670| 65 66 73 22 0d 72 65 74 | 75 72 6e 20 54 52 55 45 |efs".ret|urn TRUE|
|00002680| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 72 65 70 65 |.end if.|end repe|
|00002690| 61 74 0d 65 6e 64 20 69 | 66 0d 72 65 74 75 72 6e |at.end i|f.return|
|000026a0| 20 46 41 4c 53 45 0d 65 | 6e 64 20 68 65 6c 70 41 | FALSE.e|nd helpA|
|000026b0| 76 61 69 6c 61 62 6c 65 | 0d 0d 6f 6e 20 73 65 74 |vailable|..on set|
|000026c0| 49 6e 64 65 78 65 64 20 | 6d 6f 64 65 0d 67 6c 6f |Indexed |mode.glo|
|000026d0| 62 61 6c 20 69 6e 64 65 | 78 65 64 0d 73 65 74 20 |bal inde|xed.set |
|000026e0| 74 68 65 20 68 69 6c 69 | 74 65 20 6f 66 20 63 64 |the hili|te of cd|
|000026f0| 20 62 74 6e 20 22 69 6e | 64 65 78 65 64 22 20 6f | btn "in|dexed" o|
|00002700| 66 20 63 64 20 22 70 72 | 65 66 73 22 20 74 6f 20 |f cd "pr|efs" to |
|00002710| 6d 6f 64 65 0d 70 75 74 | 20 6d 6f 64 65 20 69 6e |mode.put| mode in|
|00002720| 74 6f 20 69 6e 64 65 78 | 65 64 0d 65 6e 64 20 73 |to index|ed.end s|
|00002730| 65 74 49 6e 64 65 78 65 | 64 0d 0d 6f 6e 20 73 65 |etIndexe|d..on se|
|00002740| 6c 65 63 74 46 72 6f 6d | 49 6e 64 65 78 0d 67 6c |lectFrom|Index.gl|
|00002750| 6f 62 61 6c 20 69 6e 64 | 65 78 65 64 2c 69 6e 64 |obal ind|exed,ind|
|00002760| 65 78 4c 69 73 74 2c 63 | 61 72 64 49 44 4c 69 73 |exList,c|ardIDLis|
|00002770| 74 0d 69 66 20 74 68 65 | 20 73 68 6f 72 74 20 69 |t.if the| short i|
|00002780| 64 20 6f 66 20 74 68 69 | 73 20 62 67 20 3d 20 35 |d of thi|s bg = 5|
|00002790| 35 33 39 20 74 68 65 6e | 20 67 65 74 20 28 6e 75 |539 then| get (nu|
|000027a0| 6d 62 65 72 28 74 68 69 | 73 20 63 64 29 2d 31 29 |mber(thi|s cd)-1)|
|000027b0| 20 65 6c 73 65 20 67 65 | 74 20 31 0d 69 66 20 69 | else ge|t 1.if i|
|000027c0| 6e 64 65 78 65 64 20 ad | 20 54 52 55 45 20 74 68 |ndexed .| TRUE th|
|000027d0| 65 6e 20 69 6e 64 65 78 | 53 74 61 63 6b 0d 73 68 |en index|Stack.sh|
|000027e0| 6f 77 44 69 61 6c 6f 67 | 20 37 2c 34 37 34 34 2c |owDialog| 7,4744,|
|000027f0| 22 43 68 6f 6f 73 65 20 | 61 20 64 6f 63 75 6d 65 |"Choose |a docume|
|00002800| 6e 74 3a 22 2c 43 68 69 | 63 61 67 6f 2c 31 32 2c |nt:",Chi|cago,12,|
|00002810| 69 6e 64 65 78 4c 69 73 | 74 2c 69 74 2c 22 6f 6e |indexLis|t,it,"on|
|00002820| 65 22 2c 67 59 28 31 33 | 32 29 2c 67 58 28 31 31 |e",gY(13|2),gX(11|
|00002830| 31 29 0d 67 65 74 20 74 | 68 65 20 72 65 73 75 6c |1).get t|he resul|
|00002840| 74 0d 69 66 20 6c 69 6e | 65 20 31 20 6f 66 20 74 |t.if lin|e 1 of t|
|00002850| 68 65 20 72 65 73 75 6c | 74 20 3d 20 32 20 74 68 |he resul|t = 2 th|
|00002860| 65 6e 20 65 78 69 74 20 | 73 65 6c 65 63 74 46 72 |en exit |selectFr|
|00002870| 6f 6d 49 6e 64 65 78 0d | 65 6c 73 65 20 69 66 20 |omIndex.|else if |
|00002880| 6c 69 6e 65 20 31 20 6f | 66 20 74 68 65 20 72 65 |line 1 o|f the re|
|00002890| 73 75 6c 74 20 3d 20 35 | 20 74 68 65 6e 20 67 6f |sult = 5| then go|
|000028a0| 20 63 64 20 22 69 6e 64 | 65 78 22 0d 65 6c 73 65 | cd "ind|ex".else|
|000028b0| 20 69 66 20 6c 69 6e 65 | 20 31 20 6f 66 20 74 68 | if line| 1 of th|
|000028c0| 65 20 72 65 73 75 6c 74 | 20 3d 20 36 20 74 68 65 |e result| = 6 the|
|000028d0| 6e 20 67 6f 20 63 64 20 | 22 70 72 65 66 73 22 0d |n go cd |"prefs".|
|000028e0| 65 6c 73 65 20 67 6f 20 | 63 64 20 69 64 20 28 6c |else go |cd id (l|
|000028f0| 69 6e 65 20 28 6c 69 6e | 65 20 32 20 6f 66 20 69 |ine (lin|e 2 of i|
|00002900| 74 29 20 6f 66 20 63 61 | 72 64 49 44 4c 69 73 74 |t) of ca|rdIDList|
|00002910| 29 0d 65 6e 64 20 73 65 | 6c 65 63 74 46 72 6f 6d |).end se|lectFrom|
|00002920| 49 6e 64 65 78 0d 0d 6f | 6e 20 69 6e 64 65 78 53 |Index..o|n indexS|
|00002930| 74 61 63 6b 0d 73 65 6e | 64 20 22 69 6e 64 65 78 |tack.sen|d "index|
|00002940| 53 74 61 63 6b 22 20 74 | 6f 20 62 67 20 62 74 6e |Stack" t|o bg btn|
|00002950| 20 69 64 20 32 31 20 6f | 66 20 63 64 20 31 20 6f | id 21 o|f cd 1 o|
|00002960| 66 20 62 67 20 22 45 64 | 69 74 6f 72 22 0d 65 6e |f bg "Ed|itor".en|
|00002970| 64 20 69 6e 64 65 78 53 | 74 61 63 6b 0d 0d 2d 2d |d indexS|tack..--|
|00002980| 20 a5 20 48 54 4d 4c 20 | 43 6f 64 69 6e 67 0d 0d | . HTML |Coding..|
|00002990| 6f 6e 20 48 54 4d 4c 41 | 64 64 72 65 73 73 0d 69 |on HTMLA|ddress.i|
|000029a0| 66 20 65 6d 70 74 79 53 | 65 6c 65 63 74 69 6f 6e |f emptyS|election|
|000029b0| 28 29 20 74 68 65 6e 20 | 65 78 69 74 20 48 54 4d |() then |exit HTM|
|000029c0| 4c 41 64 64 72 65 73 73 | 20 65 6c 73 65 20 73 65 |LAddress| else se|
|000029d0| 74 55 6e 64 6f 0d 70 75 | 74 20 74 68 65 20 73 65 |tUndo.pu|t the se|
|000029e0| 6c 65 63 74 69 6f 6e 20 | 69 6e 74 6f 20 74 68 65 |lection |into the|
|000029f0| 54 65 78 74 0d 70 75 74 | 20 74 68 65 20 6e 75 6d |Text.put| the num|
|00002a00| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 20 6f 66 20 |ber of l|ines of |
|00002a10| 74 68 65 54 65 78 74 20 | 69 6e 74 6f 20 6e 0d 72 |theText |into n.r|
|00002a20| 65 70 65 61 74 20 77 69 | 74 68 20 69 20 3d 20 31 |epeat wi|th i = 1|
|00002a30| 20 74 6f 20 6e 0d 70 75 | 74 20 22 3c 50 3e 22 20 | to n.pu|t "<P>" |
|00002a40| 61 66 74 65 72 20 6c 69 | 6e 65 20 69 20 6f 66 20 |after li|ne i of |
|00002a50| 74 68 65 54 65 78 74 0d | 65 6e 64 20 72 65 70 65 |theText.|end repe|
|00002a60| 61 74 0d 69 66 20 6c 61 | 73 74 20 63 68 61 72 20 |at.if la|st char |
|00002a70| 6f 66 20 74 68 65 54 65 | 78 74 20 ad 20 72 65 74 |of theTe|xt . ret|
|00002a80| 75 72 6e 20 74 68 65 6e | 20 70 75 74 20 72 65 74 |urn then| put ret|
|00002a90| 75 72 6e 20 61 66 74 65 | 72 20 74 68 65 54 65 78 |urn afte|r theTex|
|00002aa0| 74 0d 70 75 74 20 22 3c | 41 44 44 52 45 53 53 3e |t.put "<|ADDRESS>|
|00002ab0| 22 26 72 65 74 75 72 6e | 26 74 68 65 54 65 78 74 |"&return|&theText|
|00002ac0| 26 22 3c 2f 41 44 44 52 | 45 53 53 3e 22 20 69 6e |&"</ADDR|ESS>" in|
|00002ad0| 74 6f 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |to the s|election|
|00002ae0| 0d 65 6e 64 20 48 54 4d | 4c 41 64 64 72 65 73 73 |.end HTM|LAddress|
|00002af0| 0d 0d 6f 6e 20 48 54 4d | 4c 44 61 74 65 20 64 61 |..on HTM|LDate da|
|00002b00| 74 65 46 6f 72 6d 61 74 | 0d 67 65 74 20 22 7b 22 |teFormat|.get "{"|
|00002b10| 26 64 61 74 65 46 6f 72 | 6d 61 74 26 22 7d 22 0d |&dateFor|mat&"}".|
|00002b20| 69 66 20 22 66 69 65 6c | 64 22 20 69 73 20 69 6e |if "fiel|d" is in|
|00002b30| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 43 68 75 | the sel|ectedChu|
|00002b40| 6e 6b 20 74 68 65 6e 0d | 69 66 20 74 68 65 20 73 |nk then.|if the s|
|00002b50| 65 6c 65 63 74 69 6f 6e | 20 3d 20 22 22 20 74 68 |election| = "" th|
|00002b60| 65 6e 20 74 79 70 65 20 | 69 74 0d 65 6c 73 65 20 |en type |it.else |
|00002b70| 70 75 74 20 69 74 20 69 | 6e 74 6f 20 74 68 65 20 |put it i|nto the |
|00002b80| 73 65 6c 65 63 74 69 6f | 6e 0d 65 6c 73 65 20 61 |selectio|n.else a|
|00002b90| 6e 73 77 65 72 20 22 59 | 6f 75 20 6d 75 73 74 20 |nswer "Y|ou must |
|00002ba0| 73 65 6c 65 63 74 20 73 | 6f 6d 65 20 74 65 78 74 |select s|ome text|
|00002bb0| 20 6f 72 20 70 6c 61 63 | 65 20 74 68 65 20 69 6e | or plac|e the in|
|00002bc0| 73 65 72 74 69 6f 6e 20 | 70 6f 69 6e 74 20 69 6e |sertion |point in|
|00002bd0| 74 6f 20 61 6e 20 65 64 | 69 74 6f 72 20 66 69 65 |to an ed|itor fie|
|00002be0| 6c 64 20 66 6f 72 20 74 | 68 69 73 20 66 75 6e 63 |ld for t|his func|
|00002bf0| 74 69 6f 6e 20 74 6f 20 | 77 6f 72 6b 2e 22 20 77 |tion to |work." w|
|00002c00| 69 74 68 20 22 43 61 6e | 63 65 6c 22 0d 65 6e 64 |ith "Can|cel".end|
|00002c10| 20 48 54 4d 4c 44 61 74 | 65 0d 0d 6f 6e 20 48 54 | HTMLDat|e..on HT|
|00002c20| 4d 4c 20 69 20 2d 2d 20 | 6d 6f 64 69 66 79 20 74 |ML i -- |modify t|
|00002c30| 65 78 74 20 73 65 6c 65 | 63 74 69 6f 6e 20 77 69 |ext sele|ction wi|
|00002c40| 74 68 20 48 54 4d 4c 20 | 63 6f 64 65 73 0d 67 6c |th HTML |codes.gl|
|00002c50| 6f 62 61 6c 20 68 4e 75 | 6d 0d 73 65 74 55 6e 64 |obal hNu|m.setUnd|
|00002c60| 6f 0d 70 75 74 20 74 68 | 65 20 68 69 6c 69 74 65 |o.put th|e hilite|
|00002c70| 20 6f 66 20 63 64 20 62 | 74 6e 20 69 64 20 33 37 | of cd b|tn id 37|
|00002c80| 20 6f 66 20 63 64 20 22 | 70 72 65 66 73 22 20 69 | of cd "|prefs" i|
|00002c90| 6e 74 6f 20 73 74 61 79 | 53 65 6c 65 63 74 65 64 |nto stay|Selected|
|00002ca0| 0d 70 75 74 20 74 68 65 | 20 73 65 6c 65 63 74 65 |.put the| selecte|
|00002cb0| 64 43 68 75 6e 6b 20 69 | 6e 74 6f 20 73 43 68 75 |dChunk i|nto sChu|
|00002cc0| 6e 6b 0d 49 46 20 22 66 | 69 65 6c 64 22 20 69 73 |nk.IF "f|ield" is|
|00002cd0| 20 69 6e 20 73 43 68 75 | 6e 6b 20 74 68 65 6e 0d | in sChu|nk then.|
|00002ce0| 67 65 74 20 22 22 0d 69 | 66 20 69 20 3d 20 22 48 |get "".i|f i = "H|
|00002cf0| 6f 72 69 7a 6f 6e 74 61 | 6c 20 52 75 6c 65 22 20 |orizonta|l Rule" |
|00002d00| 74 68 65 6e 20 67 65 74 | 20 22 2c 3c 48 52 3e 2c |then get| ",<HR>,|
|00002d10| 30 22 0d 65 6c 73 65 20 | 69 66 20 63 68 61 72 20 |0".else |if char |
|00002d20| 31 20 6f 66 20 69 20 3d | 20 22 48 22 20 74 68 65 |1 of i =| "H" the|
|00002d30| 6e 20 2d 2d 20 48 65 61 | 64 69 6e 67 0d 73 65 74 |n -- Hea|ding.set|
|00002d40| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 62 67 20 | the nam|e of bg |
|00002d50| 62 74 6e 20 69 64 20 37 | 33 20 6f 66 20 63 64 20 |btn id 7|3 of cd |
|00002d60| 31 20 6f 66 20 62 67 20 | 22 45 64 69 74 6f 72 22 |1 of bg |"Editor"|
|00002d70| 20 74 6f 20 22 48 22 26 | 68 4e 75 6d 0d 67 65 74 | to "H"&|hNum.get|
|00002d80| 20 22 3c 48 22 26 68 4e | 75 6d 26 22 3e 2c 3c 2f | "<H"&hN|um&">,</|
|00002d90| 48 22 26 68 4e 75 6d 26 | 22 3e 2c 34 22 0d 73 65 |H"&hNum&|">,4".se|
|00002da0| 6c 65 63 74 20 73 43 68 | 75 6e 6b 0d 65 6c 73 65 |lect sCh|unk.else|
|00002db0| 20 69 66 20 69 20 3d 20 | 22 42 6f 6c 64 22 20 74 | if i = |"Bold" t|
|00002dc0| 68 65 6e 20 67 65 74 20 | 22 3c 42 3e 2c 3c 2f 42 |hen get |"<B>,</B|
|00002dd0| 3e 2c 33 22 0d 65 6c 73 | 65 20 69 66 20 69 20 3d |>,3".els|e if i =|
|00002de0| 20 22 42 6c 6f 63 6b 71 | 75 6f 74 65 22 20 74 68 | "Blockq|uote" th|
|00002df0| 65 6e 20 67 65 74 20 22 | 3c 42 4c 4f 43 4b 51 55 |en get "|<BLOCKQU|
|00002e00| 4f 54 45 3e 2c 3c 2f 42 | 4c 4f 43 4b 51 55 4f 54 |OTE>,</B|LOCKQUOT|
|00002e10| 45 3e 2c 31 32 22 0d 65 | 6c 73 65 20 69 66 20 69 |E>,12".e|lse if i|
|00002e20| 20 3d 20 22 43 69 74 61 | 74 69 6f 6e 22 20 74 68 | = "Cita|tion" th|
|00002e30| 65 6e 20 67 65 74 20 22 | 3c 43 49 54 45 3e 2c 3c |en get "|<CITE>,<|
|00002e40| 2f 43 49 54 45 3e 2c 36 | 22 0d 65 6c 73 65 20 69 |/CITE>,6|".else i|
|00002e50| 66 20 69 20 3d 20 22 43 | 6f 6d 6d 65 6e 74 22 20 |f i = "C|omment" |
|00002e60| 74 68 65 6e 20 67 65 74 | 20 22 3c 21 2d 2d 20 2c |then get| "<!-- ,|
|00002e70| 20 3e 2c 35 22 0d 65 6c | 73 65 20 69 66 20 69 20 | >,5".el|se if i |
|00002e80| 3d 20 22 44 65 66 69 6e | 69 74 69 6f 6e 22 20 74 |= "Defin|ition" t|
|00002e90| 68 65 6e 20 67 65 74 20 | 22 3c 44 46 4e 3e 2c 3c |hen get |"<DFN>,<|
|00002ea0| 2f 44 46 4e 3e 2c 35 22 | 0d 65 6c 73 65 20 69 66 |/DFN>,5"|.else if|
|00002eb0| 20 69 20 3d 20 22 45 6d | 70 68 61 73 69 73 22 20 | i = "Em|phasis" |
|00002ec0| 74 68 65 6e 20 67 65 74 | 20 22 3c 45 4d 3e 2c 3c |then get| "<EM>,<|
|00002ed0| 2f 45 4d 3e 2c 34 22 0d | 65 6c 73 65 20 69 66 20 |/EM>,4".|else if |
|00002ee0| 69 20 3d 20 22 49 74 61 | 6c 69 63 22 20 74 68 65 |i = "Ita|lic" the|
|00002ef0| 6e 20 67 65 74 20 22 3c | 49 3e 2c 3c 2f 49 3e 2c |n get "<|I>,</I>,|
|00002f00| 33 22 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |3".else |if i = "|
|00002f10| 4b 65 79 62 6f 61 72 64 | 22 20 74 68 65 6e 20 67 |Keyboard|" then g|
|00002f20| 65 74 20 22 3c 4b 42 44 | 3e 2c 3c 2f 4b 42 44 3e |et "<KBD|>,</KBD>|
|00002f30| 2c 35 22 0d 65 6c 73 65 | 20 69 66 20 69 20 3d 20 |,5".else| if i = |
|00002f40| 22 49 53 49 4e 44 45 58 | 22 20 74 68 65 6e 20 67 |"ISINDEX|" then g|
|00002f50| 65 74 20 22 2c 3c 49 53 | 49 4e 44 45 58 3e 2c 30 |et ",<IS|INDEX>,0|
|00002f60| 22 0d 65 6c 73 65 20 69 | 66 20 69 20 3d 20 22 4c |".else i|f i = "L|
|00002f70| 69 73 74 69 6e 67 22 20 | 74 68 65 6e 20 67 65 74 |isting" |then get|
|00002f80| 20 22 3c 4c 49 53 54 49 | 4e 47 3e 2c 3c 2f 4c 49 | "<LISTI|NG>,</LI|
|00002f90| 53 54 49 4e 47 3e 2c 39 | 22 0d 65 6c 73 65 20 69 |STING>,9|".else i|
|00002fa0| 66 20 69 20 3d 20 22 43 | 6f 64 65 22 20 74 68 65 |f i = "C|ode" the|
|00002fb0| 6e 20 67 65 74 20 22 3c | 43 4f 44 45 3e 2c 3c 2f |n get "<|CODE>,</|
|00002fc0| 43 4f 44 45 3e 2c 36 22 | 0d 65 6c 73 65 20 69 66 |CODE>,6"|.else if|
|00002fd0| 20 69 20 3d 20 22 53 61 | 6d 70 6c 65 22 20 74 68 | i = "Sa|mple" th|
|00002fe0| 65 6e 20 67 65 74 20 22 | 3c 53 41 4d 50 3e 2c 3c |en get "|<SAMP>,<|
|00002ff0| 2f 53 41 4d 50 3e 2c 36 | 22 0d 65 6c 73 65 20 69 |/SAMP>,6|".else i|
|00003000| 66 20 69 20 3d 20 22 53 | 74 72 6f 6e 67 20 45 6d |f i = "S|trong Em|
|00003010| 70 68 61 73 69 73 22 20 | 74 68 65 6e 20 67 65 74 |phasis" |then get|
|00003020| 20 22 3c 53 54 52 4f 4e | 47 3e 2c 3c 2f 53 54 52 | "<STRON|G>,</STR|
|00003030| 4f 4e 47 3e 2c 38 22 0d | 65 6c 73 65 20 69 66 20 |ONG>,8".|else if |
|00003040| 69 20 3d 20 22 53 74 72 | 69 6b 65 54 68 72 75 22 |i = "Str|ikeThru"|
|00003050| 20 74 68 65 6e 20 67 65 | 74 20 22 3c 53 3e 2c 3c | then ge|t "<S>,<|
|00003060| 2f 53 3e 2c 33 22 0d 65 | 6c 73 65 20 69 66 20 69 |/S>,3".e|lse if i|
|00003070| 20 3d 20 22 53 75 62 73 | 63 72 69 70 74 22 20 74 | = "Subs|cript" t|
|00003080| 68 65 6e 20 67 65 74 20 | 22 3c 53 55 42 3e 2c 3c |hen get |"<SUB>,<|
|00003090| 2f 53 55 42 3e 2c 35 22 | 0d 65 6c 73 65 20 69 66 |/SUB>,5"|.else if|
|000030a0| 20 69 20 3d 20 22 53 75 | 70 65 72 73 63 72 69 70 | i = "Su|perscrip|
|000030b0| 74 22 20 74 68 65 6e 20 | 67 65 74 20 22 3c 53 55 |t" then |get "<SU|
|000030c0| 50 3e 2c 3c 2f 53 55 50 | 3e 2c 35 22 0d 65 6c 73 |P>,</SUP|>,5".els|
|000030d0| 65 20 69 66 20 69 20 3d | 20 22 54 79 70 65 77 72 |e if i =| "Typewr|
|000030e0| 69 74 65 72 22 20 74 68 | 65 6e 20 67 65 74 20 22 |iter" th|en get "|
|000030f0| 3c 54 54 3e 2c 3c 2f 54 | 54 3e 2c 34 22 0d 65 6c |<TT>,</T|T>,4".el|
|00003100| 73 65 20 69 66 20 69 20 | 3d 20 22 50 72 65 66 6f |se if i |= "Prefo|
|00003110| 72 6d 61 74 74 65 64 22 | 20 74 68 65 6e 20 67 65 |rmatted"| then ge|
|00003120| 74 20 22 3c 50 52 45 3e | 2c 3c 2f 50 52 45 3e 2c |t "<PRE>|,</PRE>,|
|00003130| 35 22 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |5".else |if i = "|
|00003140| 54 69 74 6c 65 22 20 74 | 68 65 6e 20 67 65 74 20 |Title" t|hen get |
|00003150| 22 3c 54 49 54 4c 45 3e | 2c 3c 2f 54 49 54 4c 45 |"<TITLE>|,</TITLE|
|00003160| 3e 2c 37 22 0d 65 6c 73 | 65 20 69 66 20 69 20 3d |>,7".els|e if i =|
|00003170| 20 22 55 6e 64 65 72 6c | 69 6e 65 22 20 74 68 65 | "Underl|ine" the|
|00003180| 6e 20 67 65 74 20 22 3c | 55 3e 2c 3c 2f 55 3e 2c |n get "<|U>,</U>,|
|00003190| 33 22 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |3".else |if i = "|
|000031a0| 56 61 72 69 61 62 6c 65 | 22 20 74 68 65 6e 20 67 |Variable|" then g|
|000031b0| 65 74 20 22 3c 56 41 52 | 3e 2c 3c 2f 56 41 52 3e |et "<VAR|>,</VAR>|
|000031c0| 2c 35 22 0d 69 66 20 69 | 74 20 ad 20 22 22 20 74 |,5".if i|t . "" t|
|000031d0| 68 65 6e 20 2d 2d 20 66 | 6f 75 6e 64 20 63 6f 64 |hen -- f|ound cod|
|000031e0| 65 2c 20 73 6f 20 6d 6f | 64 69 66 79 20 74 65 78 |e, so mo|dify tex|
|000031f0| 74 3a 0d 70 75 74 20 69 | 74 65 6d 20 31 20 6f 66 |t:.put i|tem 1 of|
|00003200| 20 69 74 20 62 65 66 6f | 72 65 20 74 68 65 20 73 | it befo|re the s|
|00003210| 65 6c 65 63 74 69 6f 6e | 0d 70 75 74 20 69 74 65 |election|.put ite|
|00003220| 6d 20 32 20 6f 66 20 69 | 74 20 61 66 74 65 72 20 |m 2 of i|t after |
|00003230| 74 68 65 20 73 65 6c 65 | 63 74 69 6f 6e 0d 69 66 |the sele|ction.if|
|00003240| 20 73 74 61 79 53 65 6c | 65 63 74 65 64 20 74 68 | staySel|ected th|
|00003250| 65 6e 0d 61 64 64 20 69 | 74 65 6d 20 33 20 6f 66 |en.add i|tem 3 of|
|00003260| 20 69 74 20 74 6f 20 77 | 6f 72 64 20 32 20 6f 66 | it to w|ord 2 of|
|00003270| 20 73 43 68 75 6e 6b 0d | 61 64 64 20 69 74 65 6d | sChunk.|add item|
|00003280| 20 33 20 6f 66 20 69 74 | 20 74 6f 20 77 6f 72 64 | 3 of it| to word|
|00003290| 20 34 20 6f 66 20 73 43 | 68 75 6e 6b 0d 73 65 6c | 4 of sC|hunk.sel|
|000032a0| 65 63 74 20 73 43 68 75 | 6e 6b 0d 65 6e 64 20 69 |ect sChu|nk.end i|
|000032b0| 66 0d 65 6e 64 20 69 66 | 0d 45 4c 53 45 20 61 6e |f.end if|.ELSE an|
|000032c0| 73 77 65 72 20 22 59 6f | 75 20 6d 75 73 74 20 73 |swer "Yo|u must s|
|000032d0| 65 6c 65 63 74 20 73 6f | 6d 65 20 74 65 78 74 20 |elect so|me text |
|000032e0| 6f 72 20 70 6c 61 63 65 | 20 74 68 65 20 69 6e 73 |or place| the ins|
|000032f0| 65 72 74 69 6f 6e 20 70 | 6f 69 6e 74 20 69 6e 74 |ertion p|oint int|
|00003300| 6f 20 61 6e 20 65 64 69 | 74 6f 72 20 66 69 65 6c |o an edi|tor fiel|
|00003310| 64 20 66 6f 72 20 74 68 | 69 73 20 66 75 6e 63 74 |d for th|is funct|
|00003320| 69 6f 6e 20 74 6f 20 77 | 6f 72 6b 2e 22 20 77 69 |ion to w|ork." wi|
|00003330| 74 68 20 22 43 61 6e 63 | 65 6c 22 0d 65 6e 64 20 |th "Canc|el".end |
|00003340| 48 54 4d 4c 0d 0d 6f 6e | 20 48 54 4d 4c 47 6c 6f |HTML..on| HTMLGlo|
|00003350| 73 73 61 72 79 0d 69 66 | 20 65 6d 70 74 79 53 65 |ssary.if| emptySe|
|00003360| 6c 65 63 74 69 6f 6e 28 | 29 20 74 68 65 6e 20 65 |lection(|) then e|
|00003370| 78 69 74 20 48 54 4d 4c | 47 6c 6f 73 73 61 72 79 |xit HTML|Glossary|
|00003380| 20 65 6c 73 65 20 73 65 | 74 55 6e 64 6f 0d 70 75 | else se|tUndo.pu|
|00003390| 74 20 74 68 65 20 73 65 | 6c 65 63 74 69 6f 6e 20 |t the se|lection |
|000033a0| 69 6e 74 6f 20 74 68 65 | 54 65 78 74 0d 70 75 74 |into the|Text.put|
|000033b0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c | the num|ber of l|
|000033c0| 69 6e 65 73 20 6f 66 20 | 74 68 65 54 65 78 74 20 |ines of |theText |
|000033d0| 69 6e 74 6f 20 6e 0d 69 | 66 20 6e 20 6d 6f 64 20 |into n.i|f n mod |
|000033e0| 32 20 ad 20 30 20 74 68 | 65 6e 0d 61 6e 73 77 65 |2 . 0 th|en.answe|
|000033f0| 72 20 22 48 54 4d 4c 20 | 45 52 52 4f 52 3a 22 26 |r "HTML |ERROR:"&|
|00003400| 72 65 74 75 72 6e 26 22 | 54 68 65 20 74 65 78 74 |return&"|The text|
|00003410| 20 73 65 6c 65 63 74 69 | 6f 6e 20 66 6f 72 20 61 | selecti|on for a|
|00003420| 6e 20 48 54 4d 4c 20 47 | 6c 6f 73 73 61 72 79 20 |n HTML G|lossary |
|00003430| 6d 75 73 74 20 62 65 20 | 61 6e 20 65 76 65 6e 20 |must be |an even |
|00003440| 6e 75 6d 62 65 72 20 22 | 26 c2 0d 22 6f 66 20 6c |number "|&.."of l|
|00003450| 69 6e 65 73 2e 20 54 68 | 65 20 66 69 72 73 74 20 |ines. Th|e first |
|00003460| 6c 69 6e 65 20 6f 66 20 | 65 61 63 68 20 70 61 69 |line of |each pai|
|00003470| 72 20 69 73 20 74 68 65 | 20 74 65 72 6d 2c 20 74 |r is the| term, t|
|00003480| 68 65 20 73 65 63 6f 6e | 64 20 6c 69 6e 65 20 69 |he secon|d line i|
|00003490| 73 20 74 68 65 20 64 65 | 66 69 6e 69 74 69 6f 6e |s the de|finition|
|000034a0| 2e 22 0d 65 6c 73 65 0d | 72 65 70 65 61 74 20 77 |.".else.|repeat w|
|000034b0| 69 74 68 20 69 20 3d 20 | 31 20 74 6f 20 6e 0d 69 |ith i = |1 to n.i|
|000034c0| 66 20 69 20 6d 6f 64 20 | 32 20 69 73 20 30 20 74 |f i mod |2 is 0 t|
|000034d0| 68 65 6e 20 6e 65 78 74 | 20 72 65 70 65 61 74 0d |hen next| repeat.|
|000034e0| 70 75 74 20 22 3c 44 54 | 3e 22 20 62 65 66 6f 72 |put "<DT|>" befor|
|000034f0| 65 20 6c 69 6e 65 20 69 | 20 6f 66 20 74 68 65 54 |e line i| of theT|
|00003500| 65 78 74 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 72 |ext.end |repeat.r|
|00003510| 65 70 65 61 74 20 77 69 | 74 68 20 69 20 3d 20 31 |epeat wi|th i = 1|
|00003520| 20 74 6f 20 6e 0d 69 66 | 20 69 20 6d 6f 64 20 32 | to n.if| i mod 2|
|00003530| 20 69 73 20 31 20 74 68 | 65 6e 20 6e 65 78 74 20 | is 1 th|en next |
|00003540| 72 65 70 65 61 74 0d 70 | 75 74 20 22 3c 44 44 3e |repeat.p|ut "<DD>|
|00003550| 22 20 62 65 66 6f 72 65 | 20 6c 69 6e 65 20 69 20 |" before| line i |
|00003560| 6f 66 20 74 68 65 54 65 | 78 74 0d 65 6e 64 20 72 |of theTe|xt.end r|
|00003570| 65 70 65 61 74 0d 69 66 | 20 6c 61 73 74 20 63 68 |epeat.if| last ch|
|00003580| 61 72 20 6f 66 20 74 68 | 65 54 65 78 74 20 ad 20 |ar of th|eText . |
|00003590| 72 65 74 75 72 6e 20 74 | 68 65 6e 20 70 75 74 20 |return t|hen put |
|000035a0| 72 65 74 75 72 6e 20 61 | 66 74 65 72 20 74 68 65 |return a|fter the|
|000035b0| 54 65 78 74 0d 70 75 74 | 20 22 3c 44 4c 3e 22 26 |Text.put| "<DL>"&|
|000035c0| 72 65 74 75 72 6e 26 74 | 68 65 54 65 78 74 26 22 |return&t|heText&"|
|000035d0| 3c 2f 44 4c 3e 22 26 72 | 65 74 75 72 6e 20 69 6e |</DL>"&r|eturn in|
|000035e0| 74 6f 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |to the s|election|
|000035f0| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 48 54 4d 4c |.end if.|end HTML|
|00003600| 47 6c 6f 73 73 61 72 79 | 0d 0d 6f 6e 20 48 54 4d |Glossary|..on HTM|
|00003610| 4c 49 6d 61 67 65 0d 67 | 6c 6f 62 61 6c 20 74 68 |LImage.g|lobal th|
|00003620| 65 55 52 4c 0d 70 75 74 | 20 74 68 65 20 73 65 6c |eURL.put| the sel|
|00003630| 65 63 74 65 64 43 68 75 | 6e 6b 20 69 6e 74 6f 20 |ectedChu|nk into |
|00003640| 73 43 68 75 6e 6b 0d 69 | 66 20 22 66 69 65 6c 64 |sChunk.i|f "field|
|00003650| 22 20 69 73 20 69 6e 20 | 73 43 68 75 6e 6b 20 74 |" is in |sChunk t|
|00003660| 68 65 6e 0d 69 66 20 74 | 68 65 20 73 65 6c 65 63 |hen.if t|he selec|
|00003670| 74 69 6f 6e 20 ad 20 22 | 22 20 74 68 65 6e 20 67 |tion . "|" then g|
|00003680| 65 74 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |et the s|election|
|00003690| 20 65 6c 73 65 20 67 65 | 74 20 74 68 65 55 52 4c | else ge|t theURL|
|000036a0| 0d 70 75 74 20 22 4e 6f | 6e 65 2c 54 6f 70 2c 4d |.put "No|ne,Top,M|
|000036b0| 69 64 64 6c 65 2c 42 6f | 74 74 6f 6d 22 20 69 6e |iddle,Bo|ttom" in|
|000036c0| 74 6f 20 74 68 65 4d 65 | 6e 75 0d 73 68 6f 77 44 |to theMe|nu.showD|
|000036d0| 69 61 6c 6f 67 20 34 2c | 34 37 34 35 2c 22 55 52 |ialog 4,|4745,"UR|
|000036e0| 4c 3a 22 2c 22 41 6c 74 | 65 72 6e 61 74 69 76 65 |L:","Alt|ernative|
|000036f0| 20 54 65 78 74 3a 22 2c | 69 74 2c 74 68 65 4d 65 | Text:",|it,theMe|
|00003700| 6e 75 2c 31 2c 67 59 28 | 35 34 29 2c 67 58 28 32 |nu,1,gY(|54),gX(2|
|00003710| 32 31 29 0d 69 66 20 74 | 68 65 20 72 65 73 75 6c |21).if t|he resul|
|00003720| 74 20 3d 20 22 22 20 74 | 68 65 6e 20 65 78 69 74 |t = "" t|hen exit|
|00003730| 20 48 54 4d 4c 49 6d 61 | 67 65 0d 65 6c 73 65 20 | HTMLIma|ge.else |
|00003740| 69 66 20 6c 69 6e 65 20 | 32 20 6f 66 20 74 68 65 |if line |2 of the|
|00003750| 20 72 65 73 75 6c 74 20 | 3d 20 22 22 20 74 68 65 | result |= "" the|
|00003760| 6e 0d 61 6e 73 77 65 72 | 20 22 59 6f 75 20 6d 75 |n.answer| "You mu|
|00003770| 73 74 20 65 6e 74 65 72 | 20 61 20 55 52 4c 20 66 |st enter| a URL f|
|00003780| 6f 72 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |or this |function|
|00003790| 20 74 6f 20 77 6f 72 6b | 2e 22 0d 65 78 69 74 20 | to work|.".exit |
|000037a0| 48 54 4d 4c 49 6d 61 67 | 65 0d 65 6c 73 65 20 70 |HTMLImag|e.else p|
|000037b0| 75 74 20 74 68 65 20 72 | 65 73 75 6c 74 20 69 6e |ut the r|esult in|
|000037c0| 74 6f 20 74 68 65 52 65 | 73 75 6c 74 0d 73 65 74 |to theRe|sult.set|
|000037d0| 55 6e 64 6f 0d 0d 69 66 | 20 63 68 61 72 20 31 20 |Undo..if| char 1 |
|000037e0| 6f 66 20 74 68 65 52 65 | 73 75 6c 74 20 ad 20 31 |of theRe|sult . 1|
|000037f0| 20 74 68 65 6e 0d 70 75 | 74 20 73 70 61 63 65 26 | then.pu|t space&|
|00003800| 22 41 4c 49 47 4e 3d 22 | 26 69 74 65 6d 20 28 63 |"ALIGN="|&item (c|
|00003810| 68 61 72 20 31 20 6f 66 | 20 74 68 65 52 65 73 75 |har 1 of| theResu|
|00003820| 6c 74 29 20 6f 66 20 22 | 4e 6f 6e 65 2c 54 4f 50 |lt) of "|None,TOP|
|00003830| 2c 4d 49 44 44 4c 45 2c | 42 4f 54 54 4f 4d 22 20 |,MIDDLE,|BOTTOM" |
|00003840| 69 6e 74 6f 20 74 68 65 | 41 6c 69 67 6e 0d 65 6c |into the|Align.el|
|00003850| 73 65 20 70 75 74 20 22 | 22 20 69 6e 74 6f 20 74 |se put "|" into t|
|00003860| 68 65 41 6c 69 67 6e 0d | 0d 69 66 20 6c 69 6e 65 |heAlign.|.if line|
|00003870| 20 32 20 6f 66 20 74 68 | 65 52 65 73 75 6c 74 20 | 2 of th|eResult |
|00003880| ad 20 22 22 20 74 68 65 | 6e 0d 70 75 74 20 73 70 |. "" the|n.put sp|
|00003890| 61 63 65 26 22 53 52 43 | 3d 22 26 71 75 6f 74 65 |ace&"SRC|=""e|
|000038a0| 26 72 65 70 28 6c 69 6e | 65 20 32 20 6f 66 20 74 |&rep(lin|e 2 of t|
|000038b0| 68 65 52 65 73 75 6c 74 | 2c 22 3a 22 2c 22 2f 22 |heResult|,":","/"|
|000038c0| 29 26 71 75 6f 74 65 20 | 69 6e 74 6f 20 74 68 65 |)"e |into the|
|000038d0| 53 6f 75 72 63 65 0d 70 | 75 74 20 72 65 70 28 74 |Source.p|ut rep(t|
|000038e0| 68 65 53 6f 75 72 63 65 | 2c 22 68 74 74 70 2f 22 |heSource|,"http/"|
|000038f0| 2c 22 68 74 74 70 3a 22 | 29 20 69 6e 74 6f 20 74 |,"http:"|) into t|
|00003900| 68 65 53 6f 75 72 63 65 | 0d 65 6c 73 65 20 70 75 |heSource|.else pu|
|00003910| 74 20 22 22 20 69 6e 74 | 6f 20 74 68 65 53 6f 75 |t "" int|o theSou|
|00003920| 72 63 65 0d 0d 69 66 20 | 6c 69 6e 65 20 33 20 6f |rce..if |line 3 o|
|00003930| 66 20 74 68 65 52 65 73 | 75 6c 74 20 ad 20 22 22 |f theRes|ult . ""|
|00003940| 20 74 68 65 6e 0d 70 75 | 74 20 73 70 61 63 65 26 | then.pu|t space&|
|00003950| 22 41 4c 54 3d 22 26 71 | 75 6f 74 65 26 72 65 70 |"ALT="&q|uote&rep|
|00003960| 28 6c 69 6e 65 20 33 20 | 6f 66 20 74 68 65 52 65 |(line 3 |of theRe|
|00003970| 73 75 6c 74 2c 72 65 74 | 75 72 6e 29 26 71 75 6f |sult,ret|urn)&quo|
|00003980| 74 65 20 69 6e 74 6f 20 | 74 68 65 43 6f 6d 6d 65 |te into |theComme|
|00003990| 6e 74 0d 65 6c 73 65 20 | 70 75 74 20 22 22 20 69 |nt.else |put "" i|
|000039a0| 6e 74 6f 20 74 68 65 43 | 6f 6d 6d 65 6e 74 0d 0d |nto theC|omment..|
|000039b0| 67 65 74 20 22 3c 49 4d | 47 22 26 74 68 65 41 6c |get "<IM|G"&theAl|
|000039c0| 69 67 6e 26 74 68 65 53 | 6f 75 72 63 65 26 74 68 |ign&theS|ource&th|
|000039d0| 65 43 6f 6d 6d 65 6e 74 | 26 22 3e 22 0d 69 66 20 |eComment|&">".if |
|000039e0| 74 68 65 20 73 65 6c 65 | 63 74 69 6f 6e 20 3d 20 |the sele|ction = |
|000039f0| 22 22 20 74 68 65 6e 20 | 64 6f 20 22 70 75 74 20 |"" then |do "put |
|00003a00| 69 74 20 61 66 74 65 72 | 22 26 26 73 43 68 75 6e |it after|"&&sChun|
|00003a10| 6b 0d 65 6c 73 65 20 64 | 6f 20 22 70 75 74 20 69 |k.else d|o "put i|
|00003a20| 74 20 69 6e 74 6f 22 26 | 26 73 43 68 75 6e 6b 0d |t into"&|&sChunk.|
|00003a30| 65 6c 73 65 20 61 6e 73 | 77 65 72 20 22 59 6f 75 |else ans|wer "You|
|00003a40| 20 6d 75 73 74 20 73 65 | 6c 65 63 74 20 73 6f 6d | must se|lect som|
|00003a50| 65 20 74 65 78 74 20 6f | 72 20 70 6c 61 63 65 20 |e text o|r place |
|00003a60| 74 68 65 20 69 6e 73 65 | 72 74 69 6f 6e 20 70 6f |the inse|rtion po|
|00003a70| 69 6e 74 20 69 6e 74 6f | 20 61 6e 20 65 64 69 74 |int into| an edit|
|00003a80| 6f 72 20 66 69 65 6c 64 | 20 66 6f 72 20 74 68 69 |or field| for thi|
|00003a90| 73 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 77 6f |s functi|on to wo|
|00003aa0| 72 6b 2e 22 20 77 69 74 | 68 20 22 43 61 6e 63 65 |rk." wit|h "Cance|
|00003ab0| 6c 22 0d 65 6e 64 20 48 | 54 4d 4c 49 6d 61 67 65 |l".end H|TMLImage|
|00003ac0| 0d 0d 6f 6e 20 48 54 4d | 4c 4c 69 6e 6b 20 69 2c |..on HTM|LLink i,|
|00003ad0| 69 54 65 78 74 0d 67 6c | 6f 62 61 6c 20 74 68 65 |iText.gl|obal the|
|00003ae0| 55 52 4c 0d 70 75 74 20 | 22 45 52 52 4f 52 20 4f |URL.put |"ERROR O|
|00003af0| 4e 20 43 52 45 41 54 49 | 4e 47 20 4c 49 4e 4b 3a |N CREATI|NG LINK:|
|00003b00| 22 26 72 65 74 75 72 6e | 20 69 6e 74 6f 20 65 72 |"&return| into er|
|00003b10| 72 0d 70 75 74 20 74 68 | 65 20 73 65 6c 65 63 74 |r.put th|e select|
|00003b20| 69 6f 6e 20 69 6e 74 6f | 20 74 68 65 54 65 78 74 |ion into| theText|
|00003b30| 0d 70 75 74 20 74 68 65 | 20 73 65 6c 65 63 74 65 |.put the| selecte|
|00003b40| 64 43 68 75 6e 6b 20 69 | 6e 74 6f 20 73 43 68 75 |dChunk i|nto sChu|
|00003b50| 6e 6b 0d 49 46 20 22 62 | 6b 67 6e 64 20 66 69 65 |nk.IF "b|kgnd fie|
|00003b60| 6c 64 20 31 31 22 20 69 | 73 20 69 6e 20 73 43 68 |ld 11" i|s in sCh|
|00003b70| 75 6e 6b 20 74 68 65 6e | 0d 61 6e 73 77 65 72 20 |unk then|.answer |
|00003b80| 65 72 72 26 22 54 68 69 | 73 20 66 75 6e 63 74 69 |err&"Thi|s functi|
|00003b90| 6f 6e 20 63 61 6e 6e 6f | 74 20 75 73 65 20 74 68 |on canno|t use th|
|00003ba0| 65 20 55 52 4c 20 66 69 | 65 6c 64 20 61 73 20 61 |e URL fi|eld as a|
|00003bb0| 20 74 65 78 74 20 73 65 | 6c 65 63 74 69 6f 6e 2e | text se|lection.|
|00003bc0| 22 0d 45 4c 53 45 20 49 | 46 20 22 66 69 65 6c 64 |".ELSE I|F "field|
|00003bd0| 22 20 69 73 20 6e 6f 74 | 20 69 6e 20 73 43 68 75 |" is not| in sChu|
|00003be0| 6e 6b 20 74 68 65 6e 0d | 61 6e 73 77 65 72 20 65 |nk then.|answer e|
|00003bf0| 72 72 26 22 59 6f 75 20 | 6d 75 73 74 20 65 69 74 |rr&"You |must eit|
|00003c00| 68 65 72 20 73 65 6c 65 | 63 74 20 73 6f 6d 65 20 |her sele|ct some |
|00003c10| 74 65 78 74 20 6f 72 20 | 70 6c 61 63 65 20 74 68 |text or |place th|
|00003c20| 65 20 69 6e 73 65 72 74 | 69 6f 6e 20 70 6f 69 6e |e insert|ion poin|
|00003c30| 74 20 69 6e 20 61 6e 20 | 65 64 69 74 6f 72 20 66 |t in an |editor f|
|00003c40| 69 65 6c 64 20 66 6f 72 | 20 74 68 69 73 20 66 75 |ield for| this fu|
|00003c50| 6e 63 74 69 6f 6e 20 74 | 6f 20 77 6f 72 6b 2e 22 |nction t|o work."|
|00003c60| 20 77 69 74 68 20 22 43 | 61 6e 63 65 6c 22 0d 45 | with "C|ancel".E|
|00003c70| 4c 53 45 0d 69 66 20 6c | 65 6e 67 74 68 28 74 68 |LSE.if l|ength(th|
|00003c80| 65 54 65 78 74 29 20 3e | 20 39 30 20 74 68 65 6e |eText) >| 90 then|
|00003c90| 20 67 65 74 20 72 65 70 | 28 63 68 61 72 20 31 20 | get rep|(char 1 |
|00003ca0| 74 6f 20 39 30 20 6f 66 | 20 74 68 65 54 65 78 74 |to 90 of| theText|
|00003cb0| 2c 72 65 74 75 72 6e 2c | 22 c2 22 29 26 22 c9 22 |,return,|".")&"."|
|00003cc0| 20 65 6c 73 65 20 67 65 | 74 20 72 65 70 28 74 68 | else ge|t rep(th|
|00003cd0| 65 54 65 78 74 2c 72 65 | 74 75 72 6e 2c 22 c2 22 |eText,re|turn,"."|
|00003ce0| 29 0d 70 75 74 20 22 d2 | 22 26 69 74 26 22 d3 22 |).put ".|"&it&"."|
|00003cf0| 20 69 6e 74 6f 20 73 61 | 6d 70 6c 65 4c 69 6e 6b | into sa|mpleLink|
|00003d00| 0d 69 66 20 74 68 65 20 | 70 61 72 61 6d 43 6f 75 |.if the |paramCou|
|00003d10| 6e 74 20 ad 20 30 20 74 | 68 65 6e 20 2d 2d 20 55 |nt . 0 t|hen -- U|
|00003d20| 52 4c 20 66 72 6f 6d 20 | 64 6f 63 75 6d 65 6e 74 |RL from |document|
|00003d30| 20 6e 61 6d 65 0d 69 66 | 20 28 69 20 3d 20 31 20 | name.if| (i = 1 |
|00003d40| 61 6e 64 20 6e 75 6d 62 | 65 72 28 74 68 69 73 20 |and numb|er(this |
|00003d50| 63 64 29 20 3d 20 32 29 | 20 6f 72 20 28 69 20 3d |cd) = 2)| or (i =|
|00003d60| 20 32 20 61 6e 64 20 6e | 75 6d 62 65 72 28 74 68 | 2 and n|umber(th|
|00003d70| 69 73 20 63 64 29 2d 31 | 20 3d 20 6e 75 6d 62 65 |is cd)-1| = numbe|
|00003d80| 72 28 63 64 73 20 69 6e | 20 74 68 69 73 20 62 67 |r(cds in| this bg|
|00003d90| 29 29 20 74 68 65 6e 0d | 62 65 65 70 0d 65 78 69 |)) then.|beep.exi|
|00003da0| 74 20 48 54 4d 4c 4c 69 | 6e 6b 0d 65 6c 73 65 20 |t HTMLLi|nk.else |
|00003db0| 69 66 20 69 20 3d 20 31 | 20 74 68 65 6e 20 67 65 |if i = 1| then ge|
|00003dc0| 74 20 66 6c 64 20 69 64 | 20 34 20 6f 66 20 63 64 |t fld id| 4 of cd|
|00003dd0| 20 28 6e 75 6d 62 65 72 | 28 74 68 69 73 20 63 64 | (number|(this cd|
|00003de0| 29 2d 31 29 20 2d 2d 20 | 6c 69 6e 6b 20 74 6f 20 |)-1) -- |link to |
|00003df0| 70 72 65 76 69 6f 75 73 | 0d 65 6c 73 65 20 69 66 |previous|.else if|
|00003e00| 20 69 20 3d 20 32 20 74 | 68 65 6e 20 67 65 74 20 | i = 2 t|hen get |
|00003e10| 66 6c 64 20 69 64 20 34 | 20 6f 66 20 63 64 20 28 |fld id 4| of cd (|
|00003e20| 6e 75 6d 62 65 72 28 74 | 68 69 73 20 63 64 29 2b |number(t|his cd)+|
|00003e30| 31 29 20 2d 2d 20 6c 69 | 6e 6b 20 74 6f 20 6e 65 |1) -- li|nk to ne|
|00003e40| 78 74 0d 65 6c 73 65 20 | 2d 2d 20 6c 69 6e 6b 20 |xt.else |-- link |
|00003e50| 74 6f 20 73 70 65 63 69 | 66 69 63 0d 67 6c 6f 62 |to speci|fic.glob|
|00003e60| 61 6c 20 69 6e 64 65 78 | 65 64 2c 69 6e 64 65 78 |al index|ed,index|
|00003e70| 4c 69 73 74 2c 63 61 72 | 64 49 44 4c 69 73 74 0d |List,car|dIDList.|
|00003e80| 69 66 20 74 68 65 20 73 | 68 6f 72 74 20 69 64 20 |if the s|hort id |
|00003e90| 6f 66 20 74 68 69 73 20 | 62 67 20 3d 20 35 35 33 |of this |bg = 553|
|00003ea0| 39 20 74 68 65 6e 20 67 | 65 74 20 28 6e 75 6d 62 |9 then g|et (numb|
|00003eb0| 65 72 28 74 68 69 73 20 | 63 64 29 2d 31 29 20 65 |er(this |cd)-1) e|
|00003ec0| 6c 73 65 20 67 65 74 20 | 31 0d 69 66 20 69 6e 64 |lse get |1.if ind|
|00003ed0| 65 78 65 64 20 ad 20 54 | 52 55 45 20 74 68 65 6e |exed . T|RUE then|
|00003ee0| 20 69 6e 64 65 78 53 74 | 61 63 6b 0d 73 68 6f 77 | indexSt|ack.show|
|00003ef0| 44 69 61 6c 6f 67 20 37 | 2c 34 37 34 38 2c 22 53 |Dialog 7|,4748,"S|
|00003f00| 65 6c 65 63 74 20 74 68 | 65 20 48 52 45 46 20 64 |elect th|e HREF d|
|00003f10| 6f 63 75 6d 65 6e 74 3a | 22 2c 43 68 69 63 61 67 |ocument:|",Chicag|
|00003f20| 6f 2c 31 32 2c 69 6e 64 | 65 78 4c 69 73 74 2c 69 |o,12,ind|exList,i|
|00003f30| 74 2c 22 6f 6e 65 22 2c | 67 59 28 31 33 32 29 2c |t,"one",|gY(132),|
|00003f40| 67 58 28 31 31 31 29 0d | 69 66 20 6c 69 6e 65 20 |gX(111).|if line |
|00003f50| 31 20 6f 66 20 74 68 65 | 20 72 65 73 75 6c 74 20 |1 of the| result |
|00003f60| 3d 20 32 20 74 68 65 6e | 20 65 78 69 74 20 48 54 |= 2 then| exit HT|
|00003f70| 4d 4c 4c 69 6e 6b 0d 65 | 6c 73 65 20 67 65 74 20 |MLLink.e|lse get |
|00003f80| 28 6c 69 6e 65 20 28 6c | 69 6e 65 20 32 20 6f 66 |(line (l|ine 2 of|
|00003f90| 20 74 68 65 20 72 65 73 | 75 6c 74 29 20 6f 66 20 | the res|ult) of |
|00003fa0| 69 6e 64 65 78 4c 69 73 | 74 29 0d 65 6e 64 20 69 |indexLis|t).end i|
|00003fb0| 66 0d 69 66 20 28 74 68 | 65 20 68 69 6c 69 74 65 |f.if (th|e hilite|
|00003fc0| 20 6f 66 20 63 64 20 62 | 74 6e 20 69 64 20 36 33 | of cd b|tn id 63|
|00003fd0| 20 6f 66 20 63 64 20 22 | 70 72 65 66 73 22 29 20 | of cd "|prefs") |
|00003fe0| 74 68 65 6e 20 2d 2d 20 | 63 6f 6e 66 69 72 6d 0d |then -- |confirm.|
|00003ff0| 73 68 6f 77 44 69 61 6c | 6f 67 20 32 2c 34 37 34 |showDial|og 2,474|
|00004000| 37 2c 22 4c 69 6e 6b 20 | 74 6f 3a 20 22 26 26 69 |7,"Link |to: "&&i|
|00004010| 54 65 78 74 2c 73 61 6d | 70 6c 65 4c 69 6e 6b 2c |Text,sam|pleLink,|
|00004020| 69 74 2c 67 59 28 35 30 | 29 2c 67 58 28 32 34 31 |it,gY(50|),gX(241|
|00004030| 29 0d 67 65 74 20 74 68 | 65 20 72 65 73 75 6c 74 |).get th|e result|
|00004040| 0d 65 6e 64 20 69 66 0d | 69 66 20 69 74 20 3d 20 |.end if.|if it = |
|00004050| 22 22 20 74 68 65 6e 20 | 65 78 69 74 20 48 54 4d |"" then |exit HTM|
|00004060| 4c 4c 69 6e 6b 0d 65 6c | 73 65 20 70 75 74 20 6c |LLink.el|se put l|
|00004070| 69 6e 65 20 31 20 6f 66 | 20 69 74 20 69 6e 74 6f |ine 1 of| it into|
|00004080| 20 74 68 65 4c 69 6e 6b | 0d 0d 65 6c 73 65 20 2d | theLink|..else -|
|00004090| 2d 20 67 65 74 20 55 52 | 4c 20 66 72 6f 6d 20 64 |- get UR|L from d|
|000040a0| 6c 6f 67 0d 73 68 6f 77 | 44 69 61 6c 6f 67 20 32 |log.show|Dialog 2|
|000040b0| 2c 34 37 34 33 2c 22 45 | 6e 74 65 72 20 74 68 65 |,4743,"E|nter the|
|000040c0| 20 55 52 4c 20 61 62 6f | 76 65 2e 22 2c 73 61 6d | URL abo|ve.",sam|
|000040d0| 70 6c 65 4c 69 6e 6b 2c | 74 68 65 55 52 4c 2c 67 |pleLink,|theURL,g|
|000040e0| 59 28 35 30 29 2c 67 58 | 28 32 34 31 29 0d 67 65 |Y(50),gX|(241).ge|
|000040f0| 74 20 74 68 65 20 72 65 | 73 75 6c 74 0d 69 66 20 |t the re|sult.if |
|00004100| 69 74 20 3d 20 22 22 20 | 74 68 65 6e 20 65 78 69 |it = "" |then exi|
|00004110| 74 20 48 54 4d 4c 4c 69 | 6e 6b 0d 65 6c 73 65 20 |t HTMLLi|nk.else |
|00004120| 70 75 74 20 6c 69 6e 65 | 20 31 20 6f 66 20 69 74 |put line| 1 of it|
|00004130| 20 69 6e 74 6f 20 74 68 | 65 4c 69 6e 6b 0d 65 6e | into th|eLink.en|
|00004140| 64 20 69 66 0d 0d 73 65 | 74 55 6e 64 6f 0d 64 6f |d if..se|tUndo.do|
|00004150| 20 22 73 65 6c 65 63 74 | 22 26 26 73 43 68 75 6e | "select|"&&sChun|
|00004160| 6b 0d 70 75 74 20 22 3c | 41 20 48 52 45 46 3d 22 |k.put "<|A HREF="|
|00004170| 26 71 75 6f 74 65 26 74 | 68 65 4c 69 6e 6b 26 71 |"e&t|heLink&q|
|00004180| 75 6f 74 65 26 22 3e 22 | 20 62 65 66 6f 72 65 20 |uote&">"| before |
|00004190| 74 68 65 20 73 65 6c 65 | 63 74 69 6f 6e 0d 70 75 |the sele|ction.pu|
|000041a0| 74 20 22 3c 2f 41 3e 22 | 20 61 66 74 65 72 20 74 |t "</A>"| after t|
|000041b0| 68 65 20 73 65 6c 65 63 | 74 69 6f 6e 0d 69 66 20 |he selec|tion.if |
|000041c0| 28 74 68 65 20 68 69 6c | 69 74 65 20 6f 66 20 63 |(the hil|ite of c|
|000041d0| 64 20 62 74 6e 20 69 64 | 20 33 37 20 6f 66 20 63 |d btn id| 37 of c|
|000041e0| 64 20 22 70 72 65 66 73 | 22 29 20 74 68 65 6e 20 |d "prefs|") then |
|000041f0| 2d 2d 20 73 74 61 79 53 | 65 6c 65 63 74 65 64 0d |-- stayS|elected.|
|00004200| 67 65 74 20 6c 65 6e 67 | 74 68 28 74 68 65 4c 69 |get leng|th(theLi|
|00004210| 6e 6b 29 2b 31 31 0d 61 | 64 64 20 69 74 20 74 6f |nk)+11.a|dd it to|
|00004220| 20 77 6f 72 64 20 32 20 | 6f 66 20 73 43 68 75 6e | word 2 |of sChun|
|00004230| 6b 0d 61 64 64 20 69 74 | 20 74 6f 20 77 6f 72 64 |k.add it| to word|
|00004240| 20 34 20 6f 66 20 73 43 | 68 75 6e 6b 0d 73 65 6c | 4 of sC|hunk.sel|
|00004250| 65 63 74 20 73 43 68 75 | 6e 6b 0d 65 6e 64 20 69 |ect sChu|nk.end i|
|00004260| 66 0d 45 4e 44 20 49 46 | 0d 65 6e 64 20 48 54 4d |f.END IF|.end HTM|
|00004270| 4c 4c 69 6e 6b 0d 0d 6f | 6e 20 48 54 4d 4c 4c 69 |LLink..o|n HTMLLi|
|00004280| 73 74 20 74 61 67 0d 73 | 65 74 55 6e 64 6f 0d 70 |st tag.s|etUndo.p|
|00004290| 75 74 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |ut the s|election|
|000042a0| 20 69 6e 74 6f 20 74 68 | 65 54 65 78 74 0d 72 65 | into th|eText.re|
|000042b0| 70 65 61 74 20 77 69 74 | 68 20 69 20 3d 20 31 20 |peat wit|h i = 1 |
|000042c0| 74 6f 20 6e 75 6d 62 65 | 72 28 6c 69 6e 65 73 20 |to numbe|r(lines |
|000042d0| 6f 66 20 74 68 65 54 65 | 78 74 29 0d 70 75 74 20 |of theTe|xt).put |
|000042e0| 22 3c 4c 49 3e 22 20 62 | 65 66 6f 72 65 20 6c 69 |"<LI>" b|efore li|
|000042f0| 6e 65 20 69 20 6f 66 20 | 74 68 65 54 65 78 74 0d |ne i of |theText.|
|00004300| 65 6e 64 20 72 65 70 65 | 61 74 0d 69 66 20 6c 61 |end repe|at.if la|
|00004310| 73 74 20 63 68 61 72 20 | 6f 66 20 74 68 65 54 65 |st char |of theTe|
|00004320| 78 74 20 ad 20 72 65 74 | 75 72 6e 20 74 68 65 6e |xt . ret|urn then|
|00004330| 20 70 75 74 20 72 65 74 | 75 72 6e 20 61 66 74 65 | put ret|urn afte|
|00004340| 72 20 74 68 65 54 65 78 | 74 0d 70 75 74 20 22 3c |r theTex|t.put "<|
|00004350| 22 26 74 61 67 26 22 3e | 22 26 72 65 74 75 72 6e |"&tag&">|"&return|
|00004360| 26 74 68 65 54 65 78 74 | 26 22 3c 2f 22 26 74 61 |&theText|&"</"&ta|
|00004370| 67 26 22 3e 22 20 69 6e | 74 6f 20 74 68 65 20 73 |g&">" in|to the s|
|00004380| 65 6c 65 63 74 69 6f 6e | 0d 65 6e 64 20 48 54 4d |election|.end HTM|
|00004390| 4c 4c 69 73 74 0d 0d 6f | 6e 20 48 54 4d 4c 4e 61 |LList..o|n HTMLNa|
|000043a0| 6d 65 64 41 6e 63 68 6f | 72 0d 69 66 20 65 6d 70 |medAncho|r.if emp|
|000043b0| 74 79 53 65 6c 65 63 74 | 69 6f 6e 28 29 20 74 68 |tySelect|ion() th|
|000043c0| 65 6e 20 65 78 69 74 20 | 48 54 4d 4c 4e 61 6d 65 |en exit |HTMLName|
|000043d0| 64 41 6e 63 68 6f 72 20 | 65 6c 73 65 20 73 65 74 |dAnchor |else set|
|000043e0| 55 6e 64 6f 0d 70 75 74 | 20 74 68 65 20 73 65 6c |Undo.put| the sel|
|000043f0| 65 63 74 69 6f 6e 20 69 | 6e 74 6f 20 74 68 65 54 |ection i|nto theT|
|00004400| 65 78 74 0d 61 73 6b 20 | 22 45 6e 74 65 72 20 74 |ext.ask |"Enter t|
|00004410| 68 65 20 6e 61 6d 65 20 | 66 6f 72 20 74 68 69 73 |he name |for this|
|00004420| 20 4e 61 6d 65 64 20 41 | 6e 63 68 6f 72 3a 22 0d | Named A|nchor:".|
|00004430| 69 66 20 69 74 20 3d 20 | 22 22 20 74 68 65 6e 20 |if it = |"" then |
|00004440| 65 78 69 74 20 48 54 4d | 4c 4e 61 6d 65 64 41 6e |exit HTM|LNamedAn|
|00004450| 63 68 6f 72 0d 65 6c 73 | 65 20 70 75 74 20 22 3c |chor.els|e put "<|
|00004460| 41 20 4e 41 4d 45 3d 22 | 26 71 75 6f 74 65 26 69 |A NAME="|"e&i|
|00004470| 74 26 71 75 6f 74 65 26 | 22 3e 22 26 74 68 65 54 |t"e&|">"&theT|
|00004480| 65 78 74 26 22 3c 2f 41 | 3e 22 20 69 6e 74 6f 20 |ext&"</A|>" into |
|00004490| 74 68 65 20 73 65 6c 65 | 63 74 69 6f 6e 0d 65 6e |the sele|ction.en|
|000044a0| 64 20 48 54 4d 4c 4e 61 | 6d 65 64 41 6e 63 68 6f |d HTMLNa|medAncho|
|000044b0| 72 0d 0d 6f 6e 20 63 6f | 6e 76 65 72 74 50 61 72 |r..on co|nvertPar|
|000044c0| 61 67 72 61 70 68 0d 69 | 66 20 65 6d 70 74 79 53 |agraph.i|f emptyS|
|000044d0| 65 6c 65 63 74 69 6f 6e | 28 29 20 74 68 65 6e 20 |election|() then |
|000044e0| 65 78 69 74 20 63 6f 6e | 76 65 72 74 50 61 72 61 |exit con|vertPara|
|000044f0| 67 72 61 70 68 20 65 6c | 73 65 20 73 65 74 55 6e |graph el|se setUn|
|00004500| 64 6f 0d 70 75 74 20 74 | 68 65 20 73 65 6c 65 63 |do.put t|he selec|
|00004510| 74 69 6f 6e 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |tion int|o theTex|
|00004520| 74 0d 73 65 74 20 63 75 | 72 73 6f 72 20 74 6f 20 |t.set cu|rsor to |
|00004530| 77 61 74 63 68 0d 6c 6f | 63 6b 20 73 63 72 65 65 |watch.lo|ck scree|
|00004540| 6e 0d 72 65 70 65 61 74 | 20 77 68 69 6c 65 20 6f |n.repeat| while o|
|00004550| 66 66 73 65 74 28 72 65 | 74 75 72 6e 26 72 65 74 |ffset(re|turn&ret|
|00004560| 75 72 6e 2c 74 68 65 54 | 65 78 74 29 20 ad 20 30 |urn,theT|ext) . 0|
|00004570| 0d 70 75 74 20 72 65 70 | 28 74 68 65 54 65 78 74 |.put rep|(theText|
|00004580| 2c 72 65 74 75 72 6e 26 | 72 65 74 75 72 6e 2c 72 |,return&|return,r|
|00004590| 65 74 75 72 6e 29 20 69 | 6e 74 6f 20 74 68 65 54 |eturn) i|nto theT|
|000045a0| 65 78 74 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 70 |ext.end |repeat.p|
|000045b0| 75 74 20 72 65 70 28 74 | 68 65 54 65 78 74 2c 72 |ut rep(t|heText,r|
|000045c0| 65 74 75 72 6e 2c 22 3c | 50 3e 22 26 72 65 74 75 |eturn,"<|P>"&retu|
|000045d0| 72 6e 26 72 65 74 75 72 | 6e 29 20 69 6e 74 6f 20 |rn&retur|n) into |
|000045e0| 74 68 65 54 65 78 74 0d | 70 75 74 20 74 68 65 54 |theText.|put theT|
|000045f0| 65 78 74 20 69 6e 74 6f | 20 74 68 65 20 73 65 6c |ext into| the sel|
|00004600| 65 63 74 69 6f 6e 0d 75 | 6e 6c 6f 63 6b 20 73 63 |ection.u|nlock sc|
|00004610| 72 65 65 6e 0d 65 6e 64 | 20 63 6f 6e 76 65 72 74 |reen.end| convert|
|00004620| 50 61 72 61 67 72 61 70 | 68 0d 0d 6f 6e 20 72 65 |Paragrap|h..on re|
|00004630| 70 6c 61 63 65 54 65 78 | 74 0d 67 6c 6f 62 61 6c |placeTex|t.global|
|00004640| 20 73 72 63 2c 72 65 70 | 6c 61 63 65 41 6c 6c 2c | src,rep|laceAll,|
|00004650| 67 6c 6f 62 61 6c 52 65 | 70 2c 6d 69 6e 69 47 52 |globalRe|p,miniGR|
|00004660| 45 50 0d 69 66 20 74 68 | 65 20 73 65 6c 65 63 74 |EP.if th|e select|
|00004670| 69 6f 6e 20 ad 20 22 22 | 20 74 68 65 6e 20 70 75 |ion . ""| then pu|
|00004680| 74 20 74 68 65 20 73 65 | 6c 65 63 74 69 6f 6e 20 |t the se|lection |
|00004690| 69 6e 74 6f 20 73 72 63 | 0d 67 65 74 20 72 65 70 |into src|.get rep|
|000046a0| 6c 61 63 65 41 6c 6c 26 | 22 2c 22 26 67 6c 6f 62 |laceAll&|","&glob|
|000046b0| 61 6c 52 65 70 26 22 2c | 22 26 6d 69 6e 69 47 52 |alRep&",|"&miniGR|
|000046c0| 45 50 0d 73 68 6f 77 44 | 69 61 6c 6f 67 20 32 2c |EP.showD|ialog 2,|
|000046d0| 34 37 34 36 2c 22 53 65 | 61 72 63 68 20 66 6f 72 |4746,"Se|arch for|
|000046e0| 3a 22 2c 22 52 65 70 6c | 61 63 65 20 77 69 74 68 |:","Repl|ace with|
|000046f0| 3a 22 2c 73 72 63 2c 69 | 74 2c 67 59 28 36 38 29 |:",src,i|t,gY(68)|
|00004700| 2c 67 58 28 32 32 32 29 | 0d 67 65 74 20 74 68 65 |,gX(222)|.get the|
|00004710| 20 72 65 73 75 6c 74 0d | 69 66 20 69 74 20 3d 20 | result.|if it = |
|00004720| 22 22 20 6f 72 20 6c 69 | 6e 65 20 32 20 6f 66 20 |"" or li|ne 2 of |
|00004730| 69 74 20 3d 20 22 22 20 | 74 68 65 6e 20 65 78 69 |it = "" |then exi|
|00004740| 74 20 72 65 70 6c 61 63 | 65 54 65 78 74 0d 73 65 |t replac|eText.se|
|00004750| 74 55 6e 64 6f 0d 70 75 | 74 20 69 74 65 6d 20 31 |tUndo.pu|t item 1|
|00004760| 20 6f 66 20 6c 69 6e 65 | 20 31 20 6f 66 20 69 74 | of line| 1 of it|
|00004770| 20 69 6e 74 6f 20 72 65 | 70 6c 61 63 65 41 6c 6c | into re|placeAll|
|00004780| 0d 70 75 74 20 69 74 65 | 6d 20 32 20 6f 66 20 6c |.put ite|m 2 of l|
|00004790| 69 6e 65 20 31 20 6f 66 | 20 69 74 20 69 6e 74 6f |ine 1 of| it into|
|000047a0| 20 67 6c 6f 62 61 6c 52 | 65 70 0d 70 75 74 20 69 | globalR|ep.put i|
|000047b0| 74 65 6d 20 33 20 6f 66 | 20 6c 69 6e 65 20 31 20 |tem 3 of| line 1 |
|000047c0| 6f 66 20 69 74 20 69 6e | 74 6f 20 6d 69 6e 69 47 |of it in|to miniG|
|000047d0| 52 45 50 0d 70 75 74 20 | 6c 69 6e 65 20 32 20 6f |REP.put |line 2 o|
|000047e0| 66 20 69 74 20 69 6e 74 | 6f 20 73 72 63 0d 70 75 |f it int|o src.pu|
|000047f0| 74 20 6c 69 6e 65 20 33 | 20 6f 66 20 69 74 20 69 |t line 3| of it i|
|00004800| 6e 74 6f 20 72 70 6c 63 | 0d 69 66 20 6d 69 6e 69 |nto rplc|.if mini|
|00004810| 47 52 45 50 20 74 68 65 | 6e 0d 70 75 74 20 67 72 |GREP the|n.put gr|
|00004820| 65 70 43 6f 6e 76 65 72 | 74 28 73 72 63 29 20 69 |epConver|t(src) i|
|00004830| 6e 74 6f 20 73 72 63 0d | 70 75 74 20 67 72 65 70 |nto src.|put grep|
|00004840| 43 6f 6e 76 65 72 74 28 | 72 70 6c 63 29 20 69 6e |Convert(|rplc) in|
|00004850| 74 6f 20 72 70 6c 63 0d | 65 6e 64 20 69 66 0d 70 |to rplc.|end if.p|
|00004860| 75 74 20 6e 75 6d 62 65 | 72 28 63 64 73 20 6f 66 |ut numbe|r(cds of|
|00004870| 20 62 67 20 22 45 64 69 | 74 6f 72 22 29 20 69 6e | bg "Edi|tor") in|
|00004880| 74 6f 20 65 6e 64 4f 70 | 0d 69 66 20 67 6c 6f 62 |to endOp|.if glob|
|00004890| 61 6c 52 65 70 20 61 6e | 64 20 65 6e 64 4f 70 20 |alRep an|d endOp |
|000048a0| 3e 20 31 20 74 68 65 6e | 20 2d 2d 20 72 65 70 6c |> 1 then| -- repl|
|000048b0| 61 63 65 20 69 6e 20 61 | 6c 6c 20 64 6f 63 73 0d |ace in a|ll docs.|
|000048c0| 61 6e 73 77 65 72 20 22 | 47 4c 4f 42 41 4c 20 52 |answer "|GLOBAL R|
|000048d0| 45 50 4c 41 43 45 3a 22 | 26 72 65 74 75 72 6e 26 |EPLACE:"|&return&|
|000048e0| 22 43 68 61 6e 67 65 73 | 20 6d 61 64 65 20 74 6f |"Changes| made to|
|000048f0| 20 6f 74 68 65 72 20 64 | 6f 63 75 6d 65 6e 74 73 | other d|ocuments|
|00004900| 20 77 69 6c 6c 20 6e 6f | 74 20 62 65 20 75 6e 64 | will no|t be und|
|00004910| 6f 61 62 6c 65 2e 22 26 | 26 c2 0d 22 44 6f 20 79 |oable."&|&.."Do y|
|00004920| 6f 75 20 73 74 69 6c 6c | 20 77 69 73 68 20 74 6f |ou still| wish to|
|00004930| 20 63 6f 6e 74 69 6e 75 | 65 3f 22 20 77 69 74 68 | continu|e?" with|
|00004940| 20 22 59 65 73 22 20 6f | 72 20 22 4e 6f 22 0d 69 | "Yes" o|r "No".i|
|00004950| 66 20 69 74 20 3d 20 22 | 4e 6f 22 20 74 68 65 6e |f it = "|No" then|
|00004960| 20 65 78 69 74 20 72 65 | 70 6c 61 63 65 54 65 78 | exit re|placeTex|
|00004970| 74 0d 6c 6f 63 6b 20 6d | 65 73 73 61 67 65 73 0d |t.lock m|essages.|
|00004980| 70 75 73 68 20 63 64 0d | 69 66 20 65 6e 64 4f 70 |push cd.|if endOp|
|00004990| 20 3e 20 35 0d 74 68 65 | 6e 20 70 72 6f 67 72 65 | > 5.the|n progre|
|000049a0| 73 73 57 69 6e 64 6f 77 | 20 22 a9 44 6f 6d 65 22 |ssWindow| ".Dome"|
|000049b0| 2c 22 50 72 6f 67 72 65 | 73 73 22 2c 22 47 6c 6f |,"Progre|ss","Glo|
|000049c0| 62 61 6c 6c 79 20 72 65 | 70 6c 61 63 69 6e 67 20 |bally re|placing |
|000049d0| 74 65 78 74 c9 22 26 72 | 65 74 75 72 6e 26 c2 0d |text."&r|eturn&..|
|000049e0| 22 54 79 70 65 20 11 2d | 2e 20 74 6f 20 68 61 6c |"Type .-|. to hal|
|000049f0| 74 20 70 72 6f 63 65 73 | 73 69 6e 67 2e 22 2c 34 |t proces|sing.",4|
|00004a00| 31 33 30 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |130.repe|at with |
|00004a10| 63 20 3d 20 31 20 74 6f | 20 65 6e 64 4f 70 0d 67 |c = 1 to| endOp.g|
|00004a20| 6f 20 63 64 20 63 20 6f | 66 20 62 67 20 22 45 64 |o cd c o|f bg "Ed|
|00004a30| 69 74 6f 72 22 0d 72 65 | 70 65 61 74 20 77 69 74 |itor".re|peat wit|
|00004a40| 68 20 69 20 3d 20 31 20 | 74 6f 20 33 0d 67 65 74 |h i = 1 |to 3.get|
|00004a50| 20 28 73 72 63 20 69 73 | 20 69 6e 20 66 6c 64 20 | (src is| in fld |
|00004a60| 69 64 20 69 20 61 6e 64 | 20 6e 6f 74 20 72 65 70 |id i and| not rep|
|00004a70| 6c 61 63 65 41 6c 6c 29 | 0d 70 75 74 20 72 65 70 |laceAll)|.put rep|
|00004a80| 28 66 6c 64 20 69 64 20 | 69 2c 73 72 63 2c 72 70 |(fld id |i,src,rp|
|00004a90| 6c 63 2c 72 65 70 6c 61 | 63 65 41 6c 6c 29 20 69 |lc,repla|ceAll) i|
|00004aa0| 6e 74 6f 20 66 6c 64 20 | 69 64 20 69 0d 69 66 20 |nto fld |id i.if |
|00004ab0| 69 74 20 74 68 65 6e 20 | 65 78 69 74 20 72 65 70 |it then |exit rep|
|00004ac0| 65 61 74 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 69 |eat.end |repeat.i|
|00004ad0| 66 20 76 69 7a 28 22 50 | 72 6f 67 72 65 73 73 22 |f viz("P|rogress"|
|00004ae0| 29 20 74 68 65 6e 20 73 | 65 74 20 74 68 65 50 65 |) then s|et thePe|
|00004af0| 72 63 65 6e 74 20 6f 66 | 20 77 69 6e 64 6f 77 20 |rcent of| window |
|00004b00| 22 50 72 6f 67 72 65 73 | 73 22 20 74 6f 20 28 69 |"Progres|s" to (i|
|00004b10| 2f 65 6e 64 4f 70 29 2a | 31 30 30 20 65 6c 73 65 |/endOp)*|100 else|
|00004b20| 20 62 7a 0d 69 66 20 69 | 74 20 74 68 65 6e 20 65 | bz.if i|t then e|
|00004b30| 78 69 74 20 72 65 70 65 | 61 74 0d 65 6e 64 20 72 |xit repe|at.end r|
|00004b40| 65 70 65 61 74 0d 70 6f | 70 20 63 64 0d 69 66 20 |epeat.po|p cd.if |
|00004b50| 76 69 7a 28 22 50 72 6f | 67 72 65 73 73 22 29 20 |viz("Pro|gress") |
|00004b60| 74 68 65 6e 20 63 6c 6f | 73 65 20 77 69 6e 64 6f |then clo|se windo|
|00004b70| 77 20 22 50 72 6f 67 72 | 65 73 73 22 0d 62 69 6e |w "Progr|ess".bin|
|00004b80| 6b 0d 65 6c 73 65 0d 72 | 65 70 65 61 74 20 77 69 |k.else.r|epeat wi|
|00004b90| 74 68 20 69 20 3d 20 31 | 20 74 6f 20 33 0d 67 65 |th i = 1| to 3.ge|
|00004ba0| 74 20 28 73 72 63 20 69 | 73 20 69 6e 20 66 6c 64 |t (src i|s in fld|
|00004bb0| 20 69 64 20 69 20 61 6e | 64 20 6e 6f 74 20 72 65 | id i an|d not re|
|00004bc0| 70 6c 61 63 65 41 6c 6c | 29 0d 70 75 74 20 72 65 |placeAll|).put re|
|00004bd0| 70 28 66 6c 64 20 69 64 | 20 69 2c 73 72 63 2c 72 |p(fld id| i,src,r|
|00004be0| 70 6c 63 2c 72 65 70 6c | 61 63 65 41 6c 6c 29 20 |plc,repl|aceAll) |
|00004bf0| 69 6e 74 6f 20 66 6c 64 | 20 69 64 20 69 0d 69 66 |into fld| id i.if|
|00004c00| 20 69 74 20 74 68 65 6e | 20 65 78 69 74 20 72 65 | it then| exit re|
|00004c10| 70 65 61 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |peat.end| repeat.|
|00004c20| 65 6e 64 20 69 66 0d 62 | 69 6e 6b 0d 65 6e 64 20 |end if.b|ink.end |
|00004c30| 72 65 70 6c 61 63 65 54 | 65 78 74 0d 0d 66 75 6e |replaceT|ext..fun|
|00004c40| 63 74 69 6f 6e 20 67 72 | 65 70 43 6f 6e 76 65 72 |ction gr|epConver|
|00004c50| 74 20 69 0d 67 65 74 20 | 72 65 70 28 69 2c 22 5c |t i.get |rep(i,"\|
|00004c60| 6c 22 2c 6e 75 6d 54 6f | 43 68 61 72 28 31 30 29 |l",numTo|Char(10)|
|00004c70| 29 0d 67 65 74 20 72 65 | 70 28 69 74 2c 22 5c 6e |).get re|p(it,"\n|
|00004c80| 22 2c 72 65 74 75 72 6e | 26 6e 75 6d 54 6f 43 68 |",return|&numToCh|
|00004c90| 61 72 28 31 30 29 29 0d | 67 65 74 20 72 65 70 28 |ar(10)).|get rep(|
|00004ca0| 69 74 2c 22 5c 72 22 2c | 72 65 74 75 72 6e 29 0d |it,"\r",|return).|
|00004cb0| 67 65 74 20 72 65 70 28 | 69 74 2c 22 5c 73 22 2c |get rep(|it,"\s",|
|00004cc0| 73 70 61 63 65 29 0d 67 | 65 74 20 72 65 70 28 69 |space).g|et rep(i|
|00004cd0| 74 2c 22 5c 74 22 2c 74 | 61 62 29 0d 72 65 74 75 |t,"\t",t|ab).retu|
|00004ce0| 72 6e 20 69 74 0d 65 6e | 64 20 67 72 65 70 43 6f |rn it.en|d grepCo|
|00004cf0| 6e 76 65 72 74 0d 0d 6f | 6e 20 74 61 62 6c 65 43 |nvert..o|n tableC|
|00004d00| 6f 6e 76 65 72 74 0d 69 | 66 20 65 6d 70 74 79 53 |onvert.i|f emptyS|
|00004d10| 65 6c 65 63 74 69 6f 6e | 28 29 20 74 68 65 6e 20 |election|() then |
|00004d20| 65 78 69 74 20 74 61 62 | 6c 65 43 6f 6e 76 65 72 |exit tab|leConver|
|00004d30| 74 20 65 6c 73 65 20 73 | 65 74 55 6e 64 6f 0d 73 |t else s|etUndo.s|
|00004d40| 65 74 20 63 75 72 73 6f | 72 20 74 6f 20 77 61 74 |et curso|r to wat|
|00004d50| 63 68 0d 70 75 74 20 74 | 68 65 20 73 65 6c 65 63 |ch.put t|he selec|
|00004d60| 74 69 6f 6e 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |tion int|o theTex|
|00004d70| 74 0d 70 75 74 20 63 64 | 20 66 6c 64 20 69 64 20 |t.put cd| fld id |
|00004d80| 32 37 20 6f 66 20 63 64 | 20 22 70 72 65 66 73 22 |27 of cd| "prefs"|
|00004d90| 20 69 6e 74 6f 20 73 6f | 75 72 63 65 43 68 61 72 | into so|urceChar|
|00004da0| 73 0d 70 75 74 20 63 64 | 20 66 6c 64 20 69 64 20 |s.put cd| fld id |
|00004db0| 32 38 20 6f 66 20 63 64 | 20 22 70 72 65 66 73 22 |28 of cd| "prefs"|
|00004dc0| 20 69 6e 74 6f 20 72 65 | 70 6c 61 63 65 43 68 61 | into re|placeCha|
|00004dd0| 72 73 0d 70 75 74 20 6e | 75 6d 62 65 72 28 6c 69 |rs.put n|umber(li|
|00004de0| 6e 65 73 20 69 6e 20 73 | 6f 75 72 63 65 43 68 61 |nes in s|ourceCha|
|00004df0| 72 73 29 20 69 6e 74 6f | 20 65 6e 64 4f 70 0d 72 |rs) into| endOp.r|
|00004e00| 65 70 65 61 74 20 77 69 | 74 68 20 69 20 3d 20 31 |epeat wi|th i = 1|
|00004e10| 20 74 6f 20 65 6e 64 4f | 70 0d 67 65 74 20 63 68 | to endO|p.get ch|
|00004e20| 61 72 20 31 20 6f 66 20 | 6c 69 6e 65 20 69 20 6f |ar 1 of |line i o|
|00004e30| 66 20 73 6f 75 72 63 65 | 43 68 61 72 73 0d 69 66 |f source|Chars.if|
|00004e40| 20 69 74 20 3d 20 72 65 | 74 75 72 6e 20 74 68 65 | it = re|turn the|
|00004e50| 6e 20 6e 65 78 74 20 72 | 65 70 65 61 74 0d 65 6c |n next r|epeat.el|
|00004e60| 73 65 20 69 66 20 69 74 | 20 ad 20 22 22 20 74 68 |se if it| . "" th|
|00004e70| 65 6e 0d 70 75 74 20 6c | 69 6e 65 20 69 20 6f 66 |en.put l|ine i of|
|00004e80| 20 72 65 70 6c 61 63 65 | 43 68 61 72 73 20 69 6e | replace|Chars in|
|00004e90| 74 6f 20 72 0d 69 66 20 | 6c 61 73 74 20 63 68 61 |to r.if |last cha|
|00004ea0| 72 20 6f 66 20 72 20 3d | 20 72 65 74 75 72 6e 20 |r of r =| return |
|00004eb0| 74 68 65 6e 20 64 65 6c | 65 74 65 20 6c 61 73 74 |then del|ete last|
|00004ec0| 20 63 68 61 72 20 6f 66 | 20 72 0d 70 75 74 20 72 | char of| r.put r|
|00004ed0| 65 70 28 74 68 65 54 65 | 78 74 2c 69 74 2c 72 29 |ep(theTe|xt,it,r)|
|00004ee0| 20 69 6e 74 6f 20 74 68 | 65 54 65 78 74 0d 65 6e | into th|eText.en|
|00004ef0| 64 20 69 66 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |d if.end| repeat.|
|00004f00| 70 75 74 20 74 68 65 54 | 65 78 74 20 69 6e 74 6f |put theT|ext into|
|00004f10| 20 74 68 65 20 73 65 6c | 65 63 74 69 6f 6e 0d 62 | the sel|ection.b|
|00004f20| 69 6e 6b 0d 65 6e 64 20 | 74 61 62 6c 65 43 6f 6e |ink.end |tableCon|
|00004f30| 76 65 72 74 0d 0d 6f 6e | 20 73 65 74 4c 46 20 6d |vert..on| setLF m|
|00004f40| 6f 64 65 0d 73 65 74 55 | 6e 64 6f 0d 73 65 74 20 |ode.setU|ndo.set |
|00004f50| 63 75 72 73 6f 72 20 74 | 6f 20 77 61 74 63 68 0d |cursor t|o watch.|
|00004f60| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 70 75 74 20 |lock scr|een.put |
|00004f70| 6e 75 6d 54 6f 43 68 61 | 72 28 31 30 29 20 69 6e |numToCha|r(10) in|
|00004f80| 74 6f 20 4c 46 0d 72 65 | 70 65 61 74 20 77 69 74 |to LF.re|peat wit|
|00004f90| 68 20 69 20 3d 20 31 20 | 74 6f 20 33 0d 69 66 20 |h i = 1 |to 3.if |
|00004fa0| 6d 6f 64 65 20 74 68 65 | 6e 0d 70 75 74 20 72 65 |mode the|n.put re|
|00004fb0| 70 28 66 6c 64 20 69 64 | 20 69 2c 72 65 74 75 72 |p(fld id| i,retur|
|00004fc0| 6e 2c 72 65 74 75 72 6e | 26 4c 46 29 20 69 6e 74 |n,return|&LF) int|
|00004fd0| 6f 20 66 6c 64 20 69 64 | 20 69 0d 69 66 20 63 68 |o fld id| i.if ch|
|00004fe0| 61 72 20 31 20 6f 66 20 | 66 6c 64 20 69 64 20 69 |ar 1 of |fld id i|
|00004ff0| 20 ad 20 4c 46 20 74 68 | 65 6e 0d 70 75 74 20 4c | . LF th|en.put L|
|00005000| 46 20 62 65 66 6f 72 65 | 20 66 6c 64 20 69 64 20 |F before| fld id |
|00005010| 69 0d 65 6e 64 20 69 66 | 0d 65 6c 73 65 20 70 75 |i.end if|.else pu|
|00005020| 74 20 72 65 70 28 66 6c | 64 20 69 64 20 69 2c 4c |t rep(fl|d id i,L|
|00005030| 46 29 20 69 6e 74 6f 20 | 66 6c 64 20 69 64 20 69 |F) into |fld id i|
|00005040| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 75 6e 6c 6f |.end rep|eat.unlo|
|00005050| 63 6b 20 73 63 72 65 65 | 6e 0d 65 6e 64 20 73 65 |ck scree|n.end se|
|00005060| 74 4c 46 0d 0d 6f 6e 20 | 75 6e 77 72 61 70 0d 69 |tLF..on |unwrap.i|
|00005070| 66 20 65 6d 70 74 79 53 | 65 6c 65 63 74 69 6f 6e |f emptyS|election|
|00005080| 28 29 20 74 68 65 6e 20 | 65 78 69 74 20 75 6e 77 |() then |exit unw|
|00005090| 72 61 70 20 65 6c 73 65 | 20 73 65 74 55 6e 64 6f |rap else| setUndo|
|000050a0| 0d 70 75 74 20 74 68 65 | 20 73 65 6c 65 63 74 69 |.put the| selecti|
|000050b0| 6f 6e 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 0d |on into |theText.|
|000050c0| 73 65 74 20 63 75 72 73 | 6f 72 20 74 6f 20 77 61 |set curs|or to wa|
|000050d0| 74 63 68 0d 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d |tch.lock| screen.|
|000050e0| 70 75 74 20 72 65 70 28 | 74 68 65 54 65 78 74 2c |put rep(|theText,|
|000050f0| 72 65 74 75 72 6e 26 72 | 65 74 75 72 6e 2c 22 a6 |return&r|eturn,".|
|00005100| 22 29 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 0d |") into |theText.|
|00005110| 70 75 74 20 72 65 70 28 | 74 68 65 54 65 78 74 2c |put rep(|theText,|
|00005120| 72 65 74 75 72 6e 2c 22 | 20 22 29 20 69 6e 74 6f |return,"| ") into|
|00005130| 20 74 68 65 54 65 78 74 | 0d 70 75 74 20 72 65 70 | theText|.put rep|
|00005140| 28 74 68 65 54 65 78 74 | 2c 22 a6 22 2c 72 65 74 |(theText|,".",ret|
|00005150| 75 72 6e 29 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |urn) int|o theTex|
|00005160| 74 0d 70 75 74 20 74 68 | 65 54 65 78 74 20 69 6e |t.put th|eText in|
|00005170| 74 6f 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |to the s|election|
|00005180| 0d 75 6e 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 62 |.unlock |screen.b|
|00005190| 69 6e 6b 0d 65 6e 64 20 | 75 6e 77 72 61 70 0d 0d |ink.end |unwrap..|
|000051a0| 6f 6e 20 44 65 48 54 4d | 4c 0d 69 66 20 6f 70 74 |on DeHTM|L.if opt|
|000051b0| 69 6f 6e 4b 65 79 28 29 | 20 ad 20 64 6f 77 6e 20 |ionKey()| . down |
|000051c0| 74 68 65 6e 20 6c 6f 63 | 6b 20 73 63 72 65 65 6e |then loc|k screen|
|000051d0| 0d 69 66 20 65 6d 70 74 | 79 53 65 6c 65 63 74 69 |.if empt|ySelecti|
|000051e0| 6f 6e 28 29 20 74 68 65 | 6e 20 65 78 69 74 20 44 |on() the|n exit D|
|000051f0| 65 48 54 4d 4c 20 65 6c | 73 65 20 73 65 74 55 6e |eHTML el|se setUn|
|00005200| 64 6f 0d 70 75 74 20 74 | 68 65 20 73 65 6c 65 63 |do.put t|he selec|
|00005210| 74 69 6f 6e 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |tion int|o theTex|
|00005220| 74 0d 70 75 74 20 22 48 | 54 4d 4c 2c 48 45 41 44 |t.put "H|TML,HEAD|
|00005230| 2c 54 49 54 4c 45 2c 42 | 4f 44 59 2c 48 31 2c 48 |,TITLE,B|ODY,H1,H|
|00005240| 32 2c 48 33 2c 48 34 2c | 48 35 2c 48 36 2c 42 2c |2,H3,H4,|H5,H6,B,|
|00005250| 49 2c 54 54 2c 55 2c 53 | 2c 53 55 50 2c 53 55 42 |I,TT,U,S|,SUP,SUB|
|00005260| 2c 43 4f 44 45 2c 43 49 | 54 45 2c 44 46 4e 2c 45 |,CODE,CI|TE,DFN,E|
|00005270| 4d 2c 53 54 52 4f 4e 47 | 2c 22 26 c2 0d 22 4b 42 |M,STRONG|,"&.."KB|
|00005280| 44 2c 53 41 4d 50 2c 56 | 41 52 2c 45 4d 2c 53 54 |D,SAMP,V|AR,EM,ST|
|00005290| 52 4f 4e 47 2c 43 49 54 | 45 2c 54 54 2c 50 52 45 |RONG,CIT|E,TT,PRE|
|000052a0| 2c 50 4c 41 49 4e 54 45 | 58 54 2c 41 44 44 52 45 |,PLAINTE|XT,ADDRE|
|000052b0| 53 53 2c 42 4c 4f 43 4b | 51 55 4f 54 45 2c 55 4c |SS,BLOCK|QUOTE,UL|
|000052c0| 2c 44 49 52 2c 44 4c 2c | 4c 49 53 54 49 4e 47 2c |,DIR,DL,|LISTING,|
|000052d0| 4d 45 4e 55 2c 4f 4c 22 | 20 69 6e 74 6f 20 63 6f |MENU,OL"| into co|
|000052e0| 64 65 4c 69 73 74 0d 70 | 75 74 20 6e 75 6d 62 65 |deList.p|ut numbe|
|000052f0| 72 28 69 74 65 6d 73 20 | 69 6e 20 63 6f 64 65 4c |r(items |in codeL|
|00005300| 69 73 74 29 20 69 6e 74 | 6f 20 65 6e 64 4f 70 0d |ist) int|o endOp.|
|00005310| 70 72 6f 67 72 65 73 73 | 57 69 6e 64 6f 77 20 22 |progress|Window "|
|00005320| a9 44 6f 6d 65 22 2c 22 | 50 72 6f 67 72 65 73 73 |.Dome","|Progress|
|00005330| 22 2c 22 52 65 6d 6f 76 | 69 6e 67 20 48 54 4d 4c |","Remov|ing HTML|
|00005340| 20 43 6f 64 65 73 c9 22 | 26 72 65 74 75 72 6e 26 | Codes."|&return&|
|00005350| 22 54 79 70 65 20 11 2d | 2e 20 74 6f 20 68 61 6c |"Type .-|. to hal|
|00005360| 74 20 70 72 6f 63 65 73 | 73 69 6e 67 2e 22 2c 34 |t proces|sing.",4|
|00005370| 31 33 30 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |130.repe|at with |
|00005380| 69 20 3d 20 31 20 74 6f | 20 65 6e 64 4f 70 0d 62 |i = 1 to| endOp.b|
|00005390| 7a 0d 67 65 74 20 69 74 | 65 6d 20 69 20 6f 66 20 |z.get it|em i of |
|000053a0| 63 6f 64 65 4c 69 73 74 | 0d 70 75 74 20 72 65 70 |codeList|.put rep|
|000053b0| 28 74 68 65 54 65 78 74 | 2c 22 3c 22 26 69 74 26 |(theText|,"<"&it&|
|000053c0| 22 3e 22 29 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |">") int|o theTex|
|000053d0| 74 0d 70 75 74 20 72 65 | 70 28 74 68 65 54 65 78 |t.put re|p(theTex|
|000053e0| 74 2c 22 3c 2f 22 26 69 | 74 26 22 3e 22 29 20 69 |t,"</"&i|t&">") i|
|000053f0| 6e 74 6f 20 74 68 65 54 | 65 78 74 0d 69 66 20 76 |nto theT|ext.if v|
|00005400| 69 7a 28 22 50 72 6f 67 | 72 65 73 73 22 29 20 74 |iz("Prog|ress") t|
|00005410| 68 65 6e 20 73 65 74 20 | 74 68 65 50 65 72 63 65 |hen set |thePerce|
|00005420| 6e 74 20 6f 66 20 77 69 | 6e 64 6f 77 20 22 50 72 |nt of wi|ndow "Pr|
|00005430| 6f 67 72 65 73 73 22 20 | 74 6f 20 28 69 2f 65 6e |ogress" |to (i/en|
|00005440| 64 4f 70 29 2a 31 30 30 | 20 65 6c 73 65 20 62 7a |dOp)*100| else bz|
|00005450| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 70 75 74 20 |.end rep|eat.put |
|00005460| 72 65 70 28 74 68 65 54 | 65 78 74 2c 22 3c 50 3e |rep(theT|ext,"<P>|
|00005470| 22 29 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 0d |") into |theText.|
|00005480| 70 75 74 20 72 65 70 28 | 74 68 65 54 65 78 74 2c |put rep(|theText,|
|00005490| 22 3c 4c 49 3e 22 29 20 | 69 6e 74 6f 20 74 68 65 |"<LI>") |into the|
|000054a0| 54 65 78 74 0d 62 7a 0d | 70 75 74 20 72 65 70 28 |Text.bz.|put rep(|
|000054b0| 74 68 65 54 65 78 74 2c | 22 3c 48 52 3e 22 29 20 |theText,|"<HR>") |
|000054c0| 69 6e 74 6f 20 74 68 65 | 54 65 78 74 0d 70 75 74 |into the|Text.put|
|000054d0| 20 72 65 70 28 74 68 65 | 54 65 78 74 2c 22 3c 42 | rep(the|Text,"<B|
|000054e0| 52 3e 22 29 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |R>") int|o theTex|
|000054f0| 74 0d 62 7a 0d 70 75 74 | 20 72 65 70 28 74 68 65 |t.bz.put| rep(the|
|00005500| 54 65 78 74 2c 22 3c 44 | 54 3e 22 29 20 69 6e 74 |Text,"<D|T>") int|
|00005510| 6f 20 74 68 65 54 65 78 | 74 0d 70 75 74 20 72 65 |o theTex|t.put re|
|00005520| 70 28 74 68 65 54 65 78 | 74 2c 22 3c 44 44 3e 22 |p(theTex|t,"<DD>"|
|00005530| 29 20 69 6e 74 6f 20 74 | 68 65 54 65 78 74 0d 69 |) into t|heText.i|
|00005540| 66 20 76 69 7a 28 22 50 | 72 6f 67 72 65 73 73 22 |f viz("P|rogress"|
|00005550| 29 20 74 68 65 6e 20 63 | 6c 6f 73 65 20 77 69 6e |) then c|lose win|
|00005560| 64 6f 77 20 22 50 72 6f | 67 72 65 73 73 22 0d 70 |dow "Pro|gress".p|
|00005570| 75 74 20 74 68 65 54 65 | 78 74 20 69 6e 74 6f 20 |ut theTe|xt into |
|00005580| 74 68 65 20 73 65 6c 65 | 63 74 69 6f 6e 0d 75 6e |the sele|ction.un|
|00005590| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 65 6e 64 20 |lock scr|een.end |
|000055a0| 44 65 48 54 4d 4c 0d 0d | 66 75 6e 63 74 69 6f 6e |DeHTML..|function|
|000055b0| 20 64 65 6c 65 74 65 48 | 54 4d 4c 20 65 6e 64 43 | deleteH|TML endC|
|000055c0| 6f 64 65 2c 66 6c 64 49 | 44 20 2d 2d 20 65 78 2e |ode,fldI|D -- ex.|
|000055d0| 20 28 22 3c 42 4f 44 59 | 3e 22 2c 31 32 33 29 0d | ("<BODY|>",123).|
|000055e0| 2d 2d 20 67 69 76 65 6e | 20 3c 58 3e 2c 20 64 65 |-- given| <X>, de|
|000055f0| 6c 65 74 65 20 61 6c 6c | 20 6f 63 63 20 69 6e 20 |lete all| occ in |
|00005600| 48 42 46 20 6f 66 20 3c | 58 3e 20 26 20 3c 2f 58 |HBF of <|X> & </X|
|00005610| 3e 2c 20 72 65 74 75 72 | 6e 73 20 54 52 55 45 20 |>, retur|ns TRUE |
|00005620| 69 66 20 63 68 61 6e 67 | 65 73 0d 67 65 74 20 46 |if chang|es.get F|
|00005630| 41 4c 53 45 0d 70 75 74 | 20 65 6e 64 43 6f 64 65 |ALSE.put| endCode|
|00005640| 20 69 6e 74 6f 20 73 74 | 61 72 74 43 6f 64 65 0d | into st|artCode.|
|00005650| 70 75 74 20 22 2f 22 20 | 61 66 74 65 72 20 63 68 |put "/" |after ch|
|00005660| 61 72 20 31 20 6f 66 20 | 65 6e 64 43 6f 64 65 0d |ar 1 of |endCode.|
|00005670| 72 65 70 65 61 74 20 77 | 69 74 68 20 6b 20 3d 20 |repeat w|ith k = |
|00005680| 31 20 74 6f 20 6c 65 6e | 67 74 68 28 66 6c 64 49 |1 to len|gth(fldI|
|00005690| 44 29 0d 70 75 74 20 63 | 68 61 72 20 6b 20 6f 66 |D).put c|har k of|
|000056a0| 20 66 6c 64 49 44 20 69 | 6e 74 6f 20 69 0d 69 66 | fldID i|nto i.if|
|000056b0| 20 73 74 61 72 74 43 6f | 64 65 20 69 73 20 69 6e | startCo|de is in|
|000056c0| 20 66 6c 64 20 69 64 20 | 69 20 6f 72 20 65 6e 64 | fld id |i or end|
|000056d0| 43 6f 64 65 20 69 73 20 | 69 6e 20 66 6c 64 20 69 |Code is |in fld i|
|000056e0| 64 20 69 20 74 68 65 6e | 20 67 65 74 20 54 52 55 |d i then| get TRU|
|000056f0| 45 0d 70 75 74 20 72 65 | 70 28 66 6c 64 20 69 64 |E.put re|p(fld id|
|00005700| 20 69 2c 73 74 61 72 74 | 43 6f 64 65 29 20 69 6e | i,start|Code) in|
|00005710| 74 6f 20 66 6c 64 20 69 | 64 20 69 0d 70 75 74 20 |to fld i|d i.put |
|00005720| 72 65 70 28 66 6c 64 20 | 69 64 20 69 2c 65 6e 64 |rep(fld |id i,end|
|00005730| 43 6f 64 65 29 20 69 6e | 74 6f 20 66 6c 64 20 69 |Code) in|to fld i|
|00005740| 64 20 69 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 72 |d i.end |repeat.r|
|00005750| 65 74 75 72 6e 20 69 74 | 0d 65 6e 64 20 64 65 6c |eturn it|.end del|
|00005760| 65 74 65 48 54 4d 4c 0d | 0d 6f 6e 20 70 72 6f 63 |eteHTML.|.on proc|
|00005770| 45 72 72 6f 72 20 6d 73 | 67 0d 61 6e 73 77 65 72 |Error ms|g.answer|
|00005780| 20 22 48 54 4d 4c 20 53 | 59 4e 54 41 58 20 45 52 | "HTML S|YNTAX ER|
|00005790| 52 4f 52 3a 22 26 72 65 | 74 75 72 6e 26 6d 73 67 |ROR:"&re|turn&msg|
|000057a0| 26 72 65 74 75 72 6e 26 | 72 65 74 75 72 6e 26 22 |&return&|return&"|
|000057b0| 54 68 65 20 74 65 78 74 | 20 70 61 72 73 65 72 20 |The text| parser |
|000057c0| 77 69 6c 6c 20 6e 6f 74 | 20 70 72 6f 63 65 73 73 |will not| process|
|000057d0| 20 74 68 69 73 20 48 54 | 4d 4c 20 63 6f 64 65 2e | this HT|ML code.|
|000057e0| 22 20 77 69 74 68 20 22 | 43 6f 6e 74 69 6e 75 65 |" with "|Continue|
|000057f0| 22 0d 65 78 69 74 20 74 | 6f 20 48 79 70 65 72 43 |".exit t|o HyperC|
|00005800| 61 72 64 0d 65 6e 64 20 | 70 72 6f 63 45 72 72 6f |ard.end |procErro|
|00005810| 72 0d 0d 2d 2d 20 a5 20 | 66 75 6e 63 74 69 6f 6e |r..-- . |function|
|00005820| 73 0d 0d 6f 6e 20 6b 65 | 79 44 6f 77 6e 0d 67 6c |s..on ke|yDown.gl|
|00005830| 6f 62 61 6c 20 75 6e 64 | 6f 6e 65 0d 70 75 74 20 |obal und|one.put |
|00005840| 46 41 4c 53 45 20 69 6e | 74 6f 20 75 6e 64 6f 6e |FALSE in|to undon|
|00005850| 65 0d 70 61 73 73 20 6b | 65 79 44 6f 77 6e 0d 65 |e.pass k|eyDown.e|
|00005860| 6e 64 20 6b 65 79 44 6f | 77 6e 0d 0d 6f 6e 20 73 |nd keyDo|wn..on s|
|00005870| 65 74 55 6e 64 6f 20 6d | 6f 64 65 0d 67 6c 6f 62 |etUndo m|ode.glob|
|00005880| 61 6c 20 68 65 61 64 65 | 72 2c 62 6f 64 79 2c 66 |al heade|r,body,f|
|00005890| 6f 6f 74 65 72 2c 75 6e | 64 6f 6e 65 0d 69 66 20 |ooter,un|done.if |
|000058a0| 6d 6f 64 65 20 3d 20 22 | 72 65 73 74 6f 72 65 22 |mode = "|restore"|
|000058b0| 20 74 68 65 6e 0d 69 66 | 20 6e 6f 74 20 75 6e 64 | then.if| not und|
|000058c0| 6f 6e 65 20 74 68 65 6e | 20 65 78 69 74 20 73 65 |one then| exit se|
|000058d0| 74 55 6e 64 6f 0d 67 65 | 74 20 66 6c 64 20 69 64 |tUndo.ge|t fld id|
|000058e0| 20 31 0d 70 75 74 20 68 | 65 61 64 65 72 20 69 6e | 1.put h|eader in|
|000058f0| 74 6f 20 66 6c 64 20 69 | 64 20 31 0d 70 75 74 20 |to fld i|d 1.put |
|00005900| 69 74 20 69 6e 74 6f 20 | 68 65 61 64 65 72 0d 67 |it into |header.g|
|00005910| 65 74 20 66 6c 64 20 69 | 64 20 32 0d 70 75 74 20 |et fld i|d 2.put |
|00005920| 62 6f 64 79 20 69 6e 74 | 6f 20 66 6c 64 20 69 64 |body int|o fld id|
|00005930| 20 32 0d 70 75 74 20 69 | 74 20 69 6e 74 6f 20 62 | 2.put i|t into b|
|00005940| 6f 64 79 0d 67 65 74 20 | 66 6c 64 20 69 64 20 33 |ody.get |fld id 3|
|00005950| 0d 70 75 74 20 66 6f 6f | 74 65 72 20 69 6e 74 6f |.put foo|ter into|
|00005960| 20 66 6c 64 20 69 64 20 | 33 0d 70 75 74 20 69 74 | fld id |3.put it|
|00005970| 20 69 6e 74 6f 20 66 6f | 6f 74 65 72 0d 67 65 74 | into fo|oter.get|
|00005980| 20 22 22 0d 65 6c 73 65 | 20 69 66 20 6d 6f 64 65 | "".else| if mode|
|00005990| 20 3d 20 22 63 6c 65 61 | 72 22 20 74 68 65 6e 0d | = "clea|r" then.|
|000059a0| 70 75 74 20 22 22 20 69 | 6e 74 6f 20 68 65 61 64 |put "" i|nto head|
|000059b0| 65 72 0d 70 75 74 20 22 | 22 20 69 6e 74 6f 20 62 |er.put "|" into b|
|000059c0| 6f 64 79 0d 70 75 74 20 | 22 22 20 69 6e 74 6f 20 |ody.put |"" into |
|000059d0| 66 6f 6f 74 65 72 0d 65 | 6c 73 65 20 69 66 20 6d |footer.e|lse if m|
|000059e0| 6f 64 65 20 3d 20 22 72 | 65 70 6f 72 74 22 20 74 |ode = "r|eport" t|
|000059f0| 68 65 6e 0d 61 6e 73 77 | 65 72 20 22 55 4e 44 4f |hen.answ|er "UNDO|
|00005a00| 20 43 4f 4e 54 45 4e 54 | 53 3a 22 26 72 65 74 75 | CONTENT|S:"&retu|
|00005a10| 72 6e 26 22 48 65 61 64 | 65 72 3a 20 22 26 6c 65 |rn&"Head|er: "&le|
|00005a20| 6e 67 74 68 28 68 65 61 | 64 65 72 29 26 22 20 63 |ngth(hea|der)&" c|
|00005a30| 68 61 72 73 2e 22 26 72 | 65 74 75 72 6e 26 22 42 |hars."&r|eturn&"B|
|00005a40| 6f 64 79 3a 20 22 26 6c | 65 6e 67 74 68 28 62 6f |ody: "&l|ength(bo|
|00005a50| 64 79 29 26 22 20 63 68 | 61 72 73 2e 22 26 72 65 |dy)&" ch|ars."&re|
|00005a60| 74 75 72 6e 26 22 46 6f | 6f 74 65 72 3a 20 22 26 |turn&"Fo|oter: "&|
|00005a70| 6c 65 6e 67 74 68 28 66 | 6f 6f 74 65 72 29 26 22 |length(f|ooter)&"|
|00005a80| 20 63 68 61 72 73 2e 22 | 0d 65 6c 73 65 20 2d 2d | chars."|.else --|
|00005a90| 20 73 61 76 65 20 66 6c | 64 20 63 6f 6e 74 65 6e | save fl|d conten|
|00005aa0| 74 73 0d 70 75 74 20 66 | 6c 64 20 69 64 20 31 20 |ts.put f|ld id 1 |
|00005ab0| 69 6e 74 6f 20 68 65 61 | 64 65 72 0d 70 75 74 20 |into hea|der.put |
|00005ac0| 66 6c 64 20 69 64 20 32 | 20 69 6e 74 6f 20 62 6f |fld id 2| into bo|
|00005ad0| 64 79 0d 70 75 74 20 66 | 6c 64 20 69 64 20 33 20 |dy.put f|ld id 3 |
|00005ae0| 69 6e 74 6f 20 66 6f 6f | 74 65 72 0d 65 6e 64 20 |into foo|ter.end |
|00005af0| 69 66 0d 70 75 74 20 28 | 6d 6f 64 65 20 ad 20 22 |if.put (|mode . "|
|00005b00| 63 6c 65 61 72 22 29 20 | 69 6e 74 6f 20 75 6e 64 |clear") |into und|
|00005b10| 6f 6e 65 0d 65 6e 64 20 | 73 65 74 55 6e 64 6f 0d |one.end |setUndo.|
|00005b20| 0d 66 75 6e 63 74 69 6f | 6e 20 74 72 69 6d 20 69 |.functio|n trim i|
|00005b30| 0d 72 65 70 65 61 74 0d | 69 66 20 6c 61 73 74 20 |.repeat.|if last |
|00005b40| 63 68 61 72 20 6f 66 20 | 69 20 3d 20 72 65 74 75 |char of |i = retu|
|00005b50| 72 6e 20 6f 72 20 6c 61 | 73 74 20 63 68 61 72 20 |rn or la|st char |
|00005b60| 6f 66 20 69 20 3d 20 73 | 70 61 63 65 20 74 68 65 |of i = s|pace the|
|00005b70| 6e 20 64 65 6c 65 74 65 | 20 6c 61 73 74 20 63 68 |n delete| last ch|
|00005b80| 61 72 20 6f 66 20 69 0d | 65 6c 73 65 20 72 65 74 |ar of i.|else ret|
|00005b90| 75 72 6e 20 69 0d 65 6e | 64 20 72 65 70 65 61 74 |urn i.en|d repeat|
|00005ba0| 0d 65 6e 64 20 74 72 69 | 6d 0d 0d 66 75 6e 63 74 |.end tri|m..funct|
|00005bb0| 69 6f 6e 20 67 58 20 78 | 4f 66 66 0d 72 65 74 75 |ion gX x|Off.retu|
|00005bc0| 72 6e 20 74 72 75 6e 63 | 28 69 74 65 6d 20 33 20 |rn trunc|(item 3 |
|00005bd0| 6f 66 20 74 68 65 20 73 | 63 72 65 65 6e 52 65 63 |of the s|creenRec|
|00005be0| 74 2f 32 20 2d 20 69 74 | 65 6d 20 31 20 6f 66 20 |t/2 - it|em 1 of |
|00005bf0| 74 68 65 20 6c 6f 63 20 | 6f 66 20 63 64 20 77 69 |the loc |of cd wi|
|00005c00| 6e 64 6f 77 29 20 2d 20 | 78 4f 66 66 0d 65 6e 64 |ndow) - |xOff.end|
|00005c10| 20 67 58 0d 0d 66 75 6e | 63 74 69 6f 6e 20 67 59 | gX..fun|ction gY|
|00005c20| 20 79 4f 66 66 0d 72 65 | 74 75 72 6e 20 74 72 75 | yOff.re|turn tru|
|00005c30| 6e 63 28 69 74 65 6d 20 | 34 20 6f 66 20 74 68 65 |nc(item |4 of the|
|00005c40| 20 73 63 72 65 65 6e 52 | 65 63 74 2f 32 20 2d 20 | screenR|ect/2 - |
|00005c50| 69 74 65 6d 20 32 20 6f | 66 20 74 68 65 20 6c 6f |item 2 o|f the lo|
|00005c60| 63 20 6f 66 20 63 64 20 | 77 69 6e 64 6f 77 29 20 |c of cd |window) |
|00005c70| 2d 20 79 4f 66 66 0d 65 | 6e 64 20 67 59 0d 0d 66 |- yOff.e|nd gY..f|
|00005c80| 75 6e 63 74 69 6f 6e 20 | 69 6e 45 64 69 74 6f 72 |unction |inEditor|
|00005c90| 0d 72 65 74 75 72 6e 20 | 28 74 68 65 20 73 68 6f |.return |(the sho|
|00005ca0| 72 74 20 69 64 20 6f 66 | 20 74 68 69 73 20 62 67 |rt id of| this bg|
|00005cb0| 20 3d 20 35 35 33 39 29 | 0d 65 6e 64 20 69 6e 45 | = 5539)|.end inE|
|00005cc0| 64 69 74 6f 72 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |ditor..f|unction |
|00005cd0| 7a 6f 6f 6d 4f 4b 20 2d | 2d 20 72 65 74 75 72 6e |zoomOK -|- return|
|00005ce0| 73 20 54 52 55 45 20 69 | 66 20 64 6f 63 75 6d 65 |s TRUE i|f docume|
|00005cf0| 6e 74 20 77 69 6e 64 6f | 77 20 7a 6f 6f 6d 65 64 |nt windo|w zoomed|
|00005d00| 20 66 75 6c 6c 79 20 74 | 6f 20 63 64 20 77 69 6e | fully t|o cd win|
|00005d10| 64 6f 77 0d 72 65 74 75 | 72 6e 20 74 68 65 20 68 |dow.retu|rn the h|
|00005d20| 65 69 67 68 74 20 6f 66 | 20 63 64 20 77 69 6e 64 |eight of| cd wind|
|00005d30| 6f 77 20 2d 20 69 74 65 | 6d 20 34 20 6f 66 20 74 |ow - ite|m 4 of t|
|00005d40| 68 65 20 72 65 63 74 20 | 6f 66 20 66 6c 64 20 69 |he rect |of fld i|
|00005d50| 64 20 36 20 3d 20 32 c2 | 0d 61 6e 64 20 74 68 65 |d 6 = 2.|.and the|
|00005d60| 20 77 69 64 74 68 20 6f | 66 20 63 64 20 77 69 6e | width o|f cd win|
|00005d70| 64 6f 77 20 2d 20 69 74 | 65 6d 20 33 20 6f 66 20 |dow - it|em 3 of |
|00005d80| 74 68 65 20 72 65 63 74 | 20 6f 66 20 66 6c 64 20 |the rect| of fld |
|00005d90| 69 64 20 36 20 3d 20 32 | 0d 65 6e 64 20 7a 6f 6f |id 6 = 2|.end zoo|
|00005da0| 6d 4f 4b 0d 0d 66 75 6e | 63 74 69 6f 6e 20 73 61 |mOK..fun|ction sa|
|00005db0| 76 65 43 75 72 72 65 6e | 74 54 65 78 74 20 2d 2d |veCurren|tText --|
|00005dc0| 20 67 69 76 65 20 74 68 | 65 20 75 73 65 72 20 74 | give th|e user t|
|00005dd0| 68 65 20 6f 70 70 6f 72 | 74 75 6e 69 74 79 20 74 |he oppor|tunity t|
|00005de0| 6f 20 73 61 76 65 20 74 | 68 65 20 63 75 72 72 65 |o save t|he curre|
|00005df0| 6e 74 20 74 65 78 74 0d | 67 65 74 20 6c 65 6e 67 |nt text.|get leng|
|00005e00| 74 68 28 66 6c 64 20 69 | 64 20 31 29 20 2b 20 6c |th(fld i|d 1) + l|
|00005e10| 65 6e 67 74 68 28 66 6c | 64 20 69 64 20 32 29 20 |ength(fl|d id 2) |
|00005e20| 2b 20 6c 65 6e 67 74 68 | 28 66 6c 64 20 69 64 20 |+ length|(fld id |
|00005e30| 33 29 0d 69 66 20 69 74 | 20 b2 20 33 20 74 68 65 |3).if it| . 3 the|
|00005e40| 6e 20 72 65 74 75 72 6e | 20 46 41 4c 53 45 0d 65 |n return| FALSE.e|
|00005e50| 6c 73 65 0d 61 6e 73 77 | 65 72 20 22 44 6f 20 79 |lse.answ|er "Do y|
|00005e60| 6f 75 20 77 61 6e 74 20 | 74 6f 20 65 78 70 6f 72 |ou want |to expor|
|00005e70| 74 20 74 68 65 20 22 26 | 69 74 26 22 20 63 68 61 |t the "&|it&" cha|
|00005e80| 72 61 63 74 65 72 73 20 | 6f 66 20 74 68 65 20 63 |racters |of the c|
|00005e90| 75 72 72 65 6e 74 20 74 | 65 78 74 20 62 65 66 6f |urrent t|ext befo|
|00005ea0| 72 65 20 69 74 20 69 73 | 20 63 6c 65 61 72 65 64 |re it is| cleared|
|00005eb0| 3f 22 c2 0d 77 69 74 68 | 20 22 43 61 6e 63 65 6c |?"..with| "Cancel|
|00005ec0| 22 20 6f 72 20 22 59 65 | 73 22 20 6f 72 20 22 4e |" or "Ye|s" or "N|
|00005ed0| 6f 22 0d 69 66 20 69 74 | 20 69 73 20 22 43 61 6e |o".if it| is "Can|
|00005ee0| 63 65 6c 22 20 74 68 65 | 6e 20 72 65 74 75 72 6e |cel" the|n return|
|00005ef0| 20 69 74 0d 65 6c 73 65 | 20 72 65 74 75 72 6e 20 | it.else| return |
|00005f00| 28 69 74 20 69 73 20 22 | 59 65 73 22 29 0d 65 6e |(it is "|Yes").en|
|00005f10| 64 20 69 66 0d 65 6e 64 | 20 73 61 76 65 43 75 72 |d if.end| saveCur|
|00005f20| 72 65 6e 74 54 65 78 74 | 0d 0d 66 75 6e 63 74 69 |rentText|..functi|
|00005f30| 6f 6e 20 65 6d 70 74 79 | 53 65 6c 65 63 74 69 6f |on empty|Selectio|
|00005f40| 6e 0d 69 66 20 74 68 65 | 20 73 65 6c 65 63 74 69 |n.if the| selecti|
|00005f50| 6f 6e 20 3d 20 22 22 20 | 74 68 65 6e 0d 61 6e 73 |on = "" |then.ans|
|00005f60| 77 65 72 20 22 59 6f 75 | 20 6d 75 73 74 20 73 65 |wer "You| must se|
|00005f70| 6c 65 63 74 20 73 6f 6d | 65 20 74 65 78 74 20 66 |lect som|e text f|
|00005f80| 6f 72 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |or this |function|
|00005f90| 20 74 6f 20 77 6f 72 6b | 2e 22 20 77 69 74 68 20 | to work|." with |
|00005fa0| 22 43 61 6e 63 65 6c 22 | 0d 72 65 74 75 72 6e 20 |"Cancel"|.return |
|00005fb0| 54 52 55 45 0d 65 6c 73 | 65 20 72 65 74 75 72 6e |TRUE.els|e return|
|00005fc0| 20 46 41 4c 53 45 0d 65 | 6e 64 20 65 6d 70 74 79 | FALSE.e|nd empty|
|00005fd0| 53 65 6c 65 63 74 69 6f | 6e 0d 0d 66 75 6e 63 74 |Selectio|n..funct|
|00005fe0| 69 6f 6e 20 73 74 61 63 | 6b 4e 61 6d 65 20 70 61 |ion stac|kName pa|
|00005ff0| 74 68 0d 67 65 74 20 6c | 65 6e 67 74 68 28 70 61 |th.get l|ength(pa|
|00006000| 74 68 29 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |th).repe|at with |
|00006010| 69 20 3d 20 69 74 20 64 | 6f 77 6e 20 74 6f 20 31 |i = it d|own to 1|
|00006020| 0d 69 66 20 63 68 61 72 | 20 69 20 6f 66 20 70 61 |.if char| i of pa|
|00006030| 74 68 20 3d 20 22 3a 22 | 20 74 68 65 6e 20 72 65 |th = ":"| then re|
|00006040| 74 75 72 6e 20 63 68 61 | 72 20 28 69 2b 31 29 20 |turn cha|r (i+1) |
|00006050| 74 6f 20 69 74 20 6f 66 | 20 70 61 74 68 0d 65 6e |to it of| path.en|
|00006060| 64 20 72 65 70 65 61 74 | 0d 72 65 74 75 72 6e 20 |d repeat|.return |
|00006070| 70 61 74 68 0d 65 6e 64 | 20 73 74 61 63 6b 4e 61 |path.end| stackNa|
|00006080| 6d 65 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 74 68 65 |me..func|tion the|
|00006090| 50 61 74 68 20 70 61 74 | 68 0d 72 65 70 65 61 74 |Path pat|h.repeat|
|000060a0| 20 77 69 74 68 20 69 20 | 3d 20 6c 65 6e 67 74 68 | with i |= length|
|000060b0| 28 70 61 74 68 29 20 64 | 6f 77 6e 20 74 6f 20 31 |(path) d|own to 1|
|000060c0| 0d 69 66 20 63 68 61 72 | 20 69 20 6f 66 20 70 61 |.if char| i of pa|
|000060d0| 74 68 20 3d 20 22 3a 22 | 20 74 68 65 6e 0d 67 65 |th = ":"| then.ge|
|000060e0| 74 20 69 0d 65 78 69 74 | 20 72 65 70 65 61 74 0d |t i.exit| repeat.|
|000060f0| 65 6e 64 20 69 66 0d 65 | 6e 64 20 72 65 70 65 61 |end if.e|nd repea|
|00006100| 74 0d 72 65 74 75 72 6e | 20 63 68 61 72 20 38 20 |t.return| char 8 |
|00006110| 74 6f 20 69 20 6f 66 20 | 70 61 74 68 0d 65 6e 64 |to i of |path.end|
|00006120| 20 74 68 65 50 61 74 68 | 0d 0d 66 75 6e 63 74 69 | thePath|..functi|
|00006130| 6f 6e 20 76 69 7a 20 77 | 69 6e 64 6f 77 4e 61 6d |on viz w|indowNam|
|00006140| 65 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |e.if the|re is a |
|00006150| 77 69 6e 64 6f 77 20 77 | 69 6e 64 6f 77 4e 61 6d |window w|indowNam|
|00006160| 65 20 74 68 65 6e 0d 72 | 65 74 75 72 6e 20 28 74 |e then.r|eturn (t|
|00006170| 68 65 20 76 69 73 69 62 | 6c 65 20 6f 66 20 77 69 |he visib|le of wi|
|00006180| 6e 64 6f 77 20 77 69 6e | 64 6f 77 4e 61 6d 65 29 |ndow win|dowName)|
|00006190| 0d 65 6c 73 65 20 72 65 | 74 75 72 6e 20 46 41 4c |.else re|turn FAL|
|000061a0| 53 45 0d 65 6e 64 20 76 | 69 7a 0d 0d 6f 6e 20 62 |SE.end v|iz..on b|
|000061b0| 69 6e 6b 20 69 0d 69 66 | 20 74 68 65 20 70 61 72 |ink i.if| the par|
|000061c0| 61 6d 43 6f 75 6e 74 20 | 3d 20 31 20 74 68 65 6e |amCount |= 1 then|
|000061d0| 20 70 6c 61 79 20 22 62 | 69 6e 6b 22 20 69 0d 65 | play "b|ink" i.e|
|000061e0| 6c 73 65 20 70 6c 61 79 | 20 22 62 69 6e 6b 22 20 |lse play| "bink" |
|000061f0| 67 33 73 0d 65 6e 64 20 | 62 69 6e 6b 0d 0d 6f 6e |g3s.end |bink..on|
|00006200| 20 6c 62 0d 70 75 74 20 | 22 62 67 5b 22 26 6c 65 | lb.put |"bg["&le|
|00006210| 6e 67 74 68 28 73 63 72 | 69 70 74 20 6f 66 20 74 |ngth(scr|ipt of t|
|00006220| 68 69 73 20 62 67 29 26 | 22 5d 22 0d 65 6e 64 20 |his bg)&|"]".end |
|00006230| 6c 62 0d 0d 6f 6e 20 6c | 73 0d 70 75 74 20 22 73 |lb..on l|s.put "s|
|00006240| 74 61 63 6b 5b 22 26 6c | 65 6e 67 74 68 28 73 63 |tack["&l|ength(sc|
|00006250| 72 69 70 74 20 6f 66 20 | 74 68 69 73 20 73 74 61 |ript of |this sta|
|00006260| 63 6b 29 26 22 5d 22 0d | 65 6e 64 20 6c 73 0d 00 |ck)&"]".|end ls..|
|00006270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006280| 00 00 02 00 4d 41 53 54 | ff ff ff ff 00 00 00 00 |....MAST|........|
|00006290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062a0| 00 0a 5d f4 00 03 20 4d | 00 03 24 39 00 00 00 00 |..]... M|..$9....|
|000062b0| 00 11 5b 10 00 11 5f 12 | 00 0c b6 1e 00 0c 9c 6e |..[..._.|.......n|
|000062c0| 00 0d 38 3b 00 00 00 00 | 00 00 00 00 00 11 6c 6b |..8;....|......lk|
|000062d0| 00 00 00 00 00 03 64 a3 | 00 11 61 78 00 0a 14 16 |......d.|..ax....|
|000062e0| 00 09 ed 48 00 0a 51 ae | 00 00 00 00 00 00 00 00 |...H..Q.|........|
|000062f0| 00 0f 58 57 00 0f 51 36 | 00 11 34 96 00 0c b9 f0 |..XW..Q6|..4.....|
|00006300| 00 0d 3f 5e 00 00 00 00 | 00 00 00 00 00 00 00 00 |..?^....|........|
|00006310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.